diff --git a/site/reverse.js b/site/reverse.js index b78902c..a577ea8 100644 --- a/site/reverse.js +++ b/site/reverse.js @@ -364,7 +364,7 @@ const grid = new controls3d.LandmarkGrid(landmarkContainer, { numCellsPerAxis: 0, showHidden: false, centered: false, - isRotating: false, + isRotating: true, connectionWidth: 6.5, }); grid.axesMaterial.visible = false; diff --git a/site/script.js b/site/script.js index e177a06..2b8d4ff 100644 --- a/site/script.js +++ b/site/script.js @@ -59,10 +59,9 @@ function changeInHtml(data){ { if(data.result == "okay" && inauntru == 0) { - ourText = document.getElementById("p3").innerHTML; - utterThis.text = ourText - synth.speak(utterThis) + utterThis.text = ourText; + synth.speak(utterThis); document.getElementById("p3").innerHTML = " "; return; @@ -71,12 +70,25 @@ function changeInHtml(data){ { addBuffer("Together we can change the world!This is only the beginning!"); } - else - { - addBuffer(data.result); - } } + if(inauntru == 1) + { + if(data.result == "greeting") + { + addBuffer("Describe"); + } + if(data.result == "how") + { + addBuffer("Sign-language"); + } + if(data.result == "goodbye") + { + addBuffer("Project"); + document.getElementById("p3").innerHTML = " "; + document.getElementById("p3").innerHTML = "We are doing a project based on Sign-language recognition model which will innovate and open new ways to get stronger connections." + } + } if(data.result == "custom1" && inauntru == 0) { document.getElementById("p3").innerHTML = " ";