kenken999 commited on
Commit
abf0c98
1 Parent(s): b2bf9db
Files changed (1) hide show
  1. staticfiles/livetest.html +12 -1
staticfiles/livetest.html CHANGED
@@ -551,6 +551,17 @@ async fetchWithRetries(url, options, retries = 1) {
551
  })
552
 
553
  miiboAvatar.autoRecognize();
 
 
 
 
 
 
 
 
 
 
 
554
  </script>
555
  <canvas id="my-live2d"></canvas>
556
  <script src="live2d.js"></script>
@@ -569,7 +580,7 @@ async fetchWithRetries(url, options, retries = 1) {
569
  <button id="startLiveButton" onclick="startLive();">LIVE開始</button>
570
  <div id="submit_form">
571
  <input type="text" id="utterance" />
572
- <button id="sendButton" onclick="onClickSend();">送信</button>
573
  </div>
574
  </div>
575
  </body>
 
551
  })
552
 
553
  miiboAvatar.autoRecognize();
554
+
555
+ const onClickSends = () => {
556
+ alert("start send ============================ ")
557
+ let utterance = document.querySelector("#utterance");
558
+
559
+ miiboAvatar.autoRecognizeMessage(utterance)
560
+ //handleLiveComment(utterance.value, '匿名');
561
+ //onClickSend
562
+ utterance.value = "";
563
+ }
564
+
565
  </script>
566
  <canvas id="my-live2d"></canvas>
567
  <script src="live2d.js"></script>
 
580
  <button id="startLiveButton" onclick="startLive();">LIVE開始</button>
581
  <div id="submit_form">
582
  <input type="text" id="utterance" />
583
+ <button id="sendButton" onclick="onClickSends();">送信</button>
584
  </div>
585
  </div>
586
  </body>