Spaces:
Sleeping
Sleeping
Update templates/index.html
Browse files- templates/index.html +3 -4
templates/index.html
CHANGED
@@ -98,7 +98,7 @@
|
|
98 |
nameCaptured = event.results[0][0].transcript.trim();
|
99 |
document.getElementById('name').value = nameCaptured;
|
100 |
recognition.stop();
|
101 |
-
confirmName
|
102 |
};
|
103 |
}
|
104 |
|
@@ -109,9 +109,9 @@
|
|
109 |
let confirmation = event.results[0][0].transcript.trim().toLowerCase();
|
110 |
recognition.stop();
|
111 |
if (confirmation === "ok" || confirmation === "okay" || confirmation === "yes") {
|
112 |
-
speak("Great! Now, tell me your email.", startListeningForEmail);
|
113 |
} else {
|
114 |
-
speak("Let's try again. Tell me your name.", startListeningForName);
|
115 |
}
|
116 |
};
|
117 |
});
|
@@ -128,7 +128,6 @@
|
|
128 |
recognition.stop();
|
129 |
status.textContent = 'Registration complete.';
|
130 |
speak("Your registration is complete. Thank you for registering.");
|
131 |
-
|
132 |
setTimeout(() => location.reload(), 20000);
|
133 |
};
|
134 |
}
|
|
|
98 |
nameCaptured = event.results[0][0].transcript.trim();
|
99 |
document.getElementById('name').value = nameCaptured;
|
100 |
recognition.stop();
|
101 |
+
setTimeout(confirmName, 500);
|
102 |
};
|
103 |
}
|
104 |
|
|
|
109 |
let confirmation = event.results[0][0].transcript.trim().toLowerCase();
|
110 |
recognition.stop();
|
111 |
if (confirmation === "ok" || confirmation === "okay" || confirmation === "yes") {
|
112 |
+
setTimeout(() => speak("Great! Now, tell me your email.", startListeningForEmail), 500);
|
113 |
} else {
|
114 |
+
setTimeout(() => speak("Let's try again. Tell me your name.", startListeningForName), 500);
|
115 |
}
|
116 |
};
|
117 |
});
|
|
|
128 |
recognition.stop();
|
129 |
status.textContent = 'Registration complete.';
|
130 |
speak("Your registration is complete. Thank you for registering.");
|
|
|
131 |
setTimeout(() => location.reload(), 20000);
|
132 |
};
|
133 |
}
|