Spaces:
Running
Running
Commit
·
050b9af
1
Parent(s):
cbcbe6c
update arena page
Browse files- templates/arena.html +3 -6
templates/arena.html
CHANGED
|
@@ -992,6 +992,7 @@
|
|
| 992 |
hasVoted = false;
|
| 993 |
|
| 994 |
// 自动加载随机音频
|
|
|
|
| 995 |
handleRandomVoice();
|
| 996 |
}
|
| 997 |
|
|
@@ -1014,12 +1015,6 @@
|
|
| 1014 |
}
|
| 1015 |
textInput.value = selectedText;
|
| 1016 |
textInput.focus();
|
| 1017 |
-
|
| 1018 |
-
// 如果页面上没有prompt音频文��,则载入随机的prompt音频
|
| 1019 |
-
const voiceFileInput = document.getElementById('voice-file');
|
| 1020 |
-
if (voiceFileInput && voiceFileInput.files.length === 0) {
|
| 1021 |
-
handleRandomVoice();
|
| 1022 |
-
}
|
| 1023 |
}
|
| 1024 |
|
| 1025 |
function handleRandomVoice() {
|
|
@@ -1183,6 +1178,8 @@
|
|
| 1183 |
|
| 1184 |
// Fetch cached sentences when the DOM is ready
|
| 1185 |
fetchCachedSentences();
|
|
|
|
|
|
|
| 1186 |
}
|
| 1187 |
);
|
| 1188 |
</script>
|
|
|
|
| 992 |
hasVoted = false;
|
| 993 |
|
| 994 |
// 自动加载随机音频
|
| 995 |
+
handleRandom();
|
| 996 |
handleRandomVoice();
|
| 997 |
}
|
| 998 |
|
|
|
|
| 1015 |
}
|
| 1016 |
textInput.value = selectedText;
|
| 1017 |
textInput.focus();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1018 |
}
|
| 1019 |
|
| 1020 |
function handleRandomVoice() {
|
|
|
|
| 1178 |
|
| 1179 |
// Fetch cached sentences when the DOM is ready
|
| 1180 |
fetchCachedSentences();
|
| 1181 |
+
handleRandom();
|
| 1182 |
+
handleRandomVoice();
|
| 1183 |
}
|
| 1184 |
);
|
| 1185 |
</script>
|