Spaces:
Sleeping
Sleeping
Update templates/index.html
Browse files- templates/index.html +2 -3
templates/index.html
CHANGED
@@ -104,7 +104,7 @@
|
|
104 |
recognition.onresult = function(event) {
|
105 |
const transcript = event.results[0][0].transcript.trim().toLowerCase();
|
106 |
|
107 |
-
if (transcript
|
108 |
recognition.stop(); // Stop recognition immediately
|
109 |
isCapturingName = false;
|
110 |
isCapturingEmail = true;
|
@@ -145,7 +145,7 @@
|
|
145 |
recognition.onresult = function(event) {
|
146 |
const transcript = event.results[0][0].transcript.trim().toLowerCase();
|
147 |
|
148 |
-
if (transcript
|
149 |
recognition.stop(); // Stop recognition for email
|
150 |
isCapturingEmail = false;
|
151 |
status.textContent = 'Registration complete.';
|
@@ -184,4 +184,3 @@
|
|
184 |
</script>
|
185 |
</body>
|
186 |
</html>
|
187 |
-
|
|
|
104 |
recognition.onresult = function(event) {
|
105 |
const transcript = event.results[0][0].transcript.trim().toLowerCase();
|
106 |
|
107 |
+
if (transcript.includes("next")) {
|
108 |
recognition.stop(); // Stop recognition immediately
|
109 |
isCapturingName = false;
|
110 |
isCapturingEmail = true;
|
|
|
145 |
recognition.onresult = function(event) {
|
146 |
const transcript = event.results[0][0].transcript.trim().toLowerCase();
|
147 |
|
148 |
+
if (transcript.includes("next")) {
|
149 |
recognition.stop(); // Stop recognition for email
|
150 |
isCapturingEmail = false;
|
151 |
status.textContent = 'Registration complete.';
|
|
|
184 |
</script>
|
185 |
</body>
|
186 |
</html>
|
|