スプレッドシートを使うことにした。
便利だよね、エクセル持ってない身としては。
まず、課題を箇条書きにして、埋めていく。これは簡単にできる。
次に、対処法を別にパターンを書いていく。できれば、ナンバーをつけておく。
課題の対処法を、プルダウンで入力していく。対処法だけであらかじめ箇条書きにしてあるから簡単。
あとは、フィルタを使って並べ替えなどをして整える。そうすると、似たような作業はまとめたり効率よくすることも可能ではないかと。
簡単であることがまず絶対条件。
** 注意
- 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);
});
});
})();