ボカロとマイクラが好きな、聴くブログ

ボカロとマイクラが好きな雑記ブログ

follow us in feedly

2017-06-28から1日間の記事一覧

出不精で筆無精の描くブログ

タイトル通り。 出不精は分かるにしても、筆無精がブログを書く、というのは向いてないのではないか? と考えるのが普通だろうけど、何か発信するにはブログ的なものがいいとは思う。たとえ筆無精でも。 筆無精でも書けるブログ! なんて銘打つ訳でもなく。 …

follow us in feedly ** 注意 - Web Speech API非対応のブラウザでは音読できません */ (function () { if (!window.speechSynthesis) return; document.querySelectorAll('article').forEach(function (article) { var button = document.createElement('button'); button.type = 'button'; button.className = 'btn'; button.textContent = '音読する'; button.style = 'float: right'; article.querySelector('header').appendChild(button); button.addEventListener('click', function () { var synth = window.speechSynthesis; var body = article.querySelector('.entry-content').textContent; var utter = new SpeechSynthesisUtterance(body); synth.speak(utter); }); }); })();