Spaces:
Running
on
Zero
Running
on
Zero
df
Browse files
staticfiles/livetest.html
CHANGED
@@ -554,13 +554,13 @@ async fetchWithRetries(url, options, retries = 1) {
|
|
554 |
|
555 |
const onClickSends = () => {
|
556 |
alert("start send ============================ ")
|
557 |
-
let utterance = document.querySelector("#
|
558 |
-
alert(
|
559 |
|
560 |
miiboAvatar.autoRecognizeMessage(utterance.value)
|
561 |
//handleLiveComment(utterance.value, '匿名');
|
562 |
//onClickSend
|
563 |
-
|
564 |
}
|
565 |
|
566 |
</script>
|
@@ -583,6 +583,10 @@ async fetchWithRetries(url, options, retries = 1) {
|
|
583 |
<input type="text" id="utterance" />
|
584 |
<button id="sendButton" onclick="onClickSends();">送信</button>
|
585 |
</div>
|
|
|
|
|
|
|
|
|
586 |
</div>
|
587 |
</body>
|
588 |
|
|
|
554 |
|
555 |
const onClickSends = () => {
|
556 |
alert("start send ============================ ")
|
557 |
+
let utterance = document.querySelector("#utterances");
|
558 |
+
alert(utterances.value)
|
559 |
|
560 |
miiboAvatar.autoRecognizeMessage(utterance.value)
|
561 |
//handleLiveComment(utterance.value, '匿名');
|
562 |
//onClickSend
|
563 |
+
utterances.value = "";
|
564 |
}
|
565 |
|
566 |
</script>
|
|
|
583 |
<input type="text" id="utterance" />
|
584 |
<button id="sendButton" onclick="onClickSends();">送信</button>
|
585 |
</div>
|
586 |
+
<div id="submit_forms">
|
587 |
+
<input type="text" id="utterances" />
|
588 |
+
<button id="sendButton" onclick="onClickSends();">送信</button>
|
589 |
+
</div>
|
590 |
</div>
|
591 |
</body>
|
592 |
|