Spaces:
Sleeping
Sleeping
Update templates/index.html
Browse files- templates/index.html +1 -20
templates/index.html
CHANGED
@@ -122,23 +122,4 @@
|
|
122 |
emailInput.value = transcript;
|
123 |
status.textContent = 'Registration complete.';
|
124 |
|
125 |
-
// After registration is complete, refresh page automatically after 15
|
126 |
-
setTimeout(() => location.reload(), 15000); // Refresh after 15 seconds
|
127 |
-
}
|
128 |
-
}
|
129 |
-
};
|
130 |
-
|
131 |
-
recognition.onerror = function(event) {
|
132 |
-
console.error('Speech recognition error:', event.error);
|
133 |
-
status.textContent = 'Error recognizing speech. Please try again.';
|
134 |
-
};
|
135 |
-
}
|
136 |
-
|
137 |
-
// Make sure to start listening as soon as the page loads
|
138 |
-
window.onload = function () {
|
139 |
-
welcomeMessage(); // Automatically say the welcome message
|
140 |
-
setTimeout(startListening, 5000); // Start listening after the welcome message
|
141 |
-
};
|
142 |
-
</script>
|
143 |
-
</body>
|
144 |
-
</html>
|
|
|
122 |
emailInput.value = transcript;
|
123 |
status.textContent = 'Registration complete.';
|
124 |
|
125 |
+
// After registration is complete, refresh page automatically after 15 se
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|