Spaces:
Running
Running
Update index.html
Browse files- index.html +3 -3
index.html
CHANGED
|
@@ -223,12 +223,12 @@ Good to see you!
|
|
| 223 |
for (let word of words){
|
| 224 |
// ボタンを作成
|
| 225 |
const button = document.createElement('button');
|
| 226 |
-
|
| 227 |
// ボタンテキストを設定
|
| 228 |
-
button.textContent = "#"+
|
| 229 |
|
| 230 |
// ボタンにクリックイベントを追加
|
| 231 |
-
button.onclick = () => tts(word,
|
| 232 |
|
| 233 |
// ラベルを作成(オプション)
|
| 234 |
//const label = document.createElement('span');
|
|
|
|
| 223 |
for (let word of words){
|
| 224 |
// ボタンを作成
|
| 225 |
const button = document.createElement('button');
|
| 226 |
+
const spk = number
|
| 227 |
// ボタンテキストを設定
|
| 228 |
+
button.textContent = "#"+spk.toString()+" "+word;
|
| 229 |
|
| 230 |
// ボタンにクリックイベントを追加
|
| 231 |
+
button.onclick = () => tts(word, spk);
|
| 232 |
|
| 233 |
// ラベルを作成(オプション)
|
| 234 |
//const label = document.createElement('span');
|