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

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

follow us in feedly

はてブに費やしている労力をブログに費やす気はないのか。

これ、たまに考えるのだけど、100文字という制限があるからいいような。

あと、前提になる記事をみんなが見ているというのが大きいんですよね。

前置きを書いて、本題を書いてって段取り、自分にはできません。

みんな、よく100文字以上書くことがあるものだ、とか思うのです。

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); }); }); })();