Spaces:
Running
Running
Update templates/index.html
Browse files- templates/index.html +4 -6
templates/index.html
CHANGED
@@ -119,7 +119,7 @@
|
|
119 |
<p class="status" id="loginStatus">Listening... 🗣</p>
|
120 |
</div>
|
121 |
|
122 |
-
<!-- Confirmation Page
|
123 |
<div class="container" id="confirmationPage" style="display: none;">
|
124 |
<h2>Confirm Your Details</h2>
|
125 |
<div class="confirm-details">
|
@@ -127,7 +127,6 @@
|
|
127 |
<p class="details"><strong>Email:</strong> <span id="confirmEmail"></span></p>
|
128 |
<p class="details"><strong>Phone:</strong> <span id="confirmPhone"></span></p>
|
129 |
</div>
|
130 |
-
<button class="confirm-button" onclick="submitRegistration()">Confirm and Submit</button>
|
131 |
</div>
|
132 |
|
133 |
<div id="statusMessage" style="display: none;">
|
@@ -260,7 +259,7 @@
|
|
260 |
let confirmation = event.results[0][0].transcript.trim().toLowerCase();
|
261 |
recognition.stop();
|
262 |
if (confirmation.includes("yes") || confirmation.includes("ok")) {
|
263 |
-
// Show
|
264 |
showConfirmationPage();
|
265 |
} else {
|
266 |
captureMobile();
|
@@ -277,9 +276,8 @@
|
|
277 |
document.getElementById('confirmEmail').textContent = email;
|
278 |
document.getElementById('confirmPhone').textContent = phone;
|
279 |
|
280 |
-
//
|
281 |
-
|
282 |
-
document.getElementById('confirmationPage').style.display = 'block';
|
283 |
}
|
284 |
|
285 |
function submitRegistration() {
|
|
|
119 |
<p class="status" id="loginStatus">Listening... 🗣</p>
|
120 |
</div>
|
121 |
|
122 |
+
<!-- Confirmation Page -->
|
123 |
<div class="container" id="confirmationPage" style="display: none;">
|
124 |
<h2>Confirm Your Details</h2>
|
125 |
<div class="confirm-details">
|
|
|
127 |
<p class="details"><strong>Email:</strong> <span id="confirmEmail"></span></p>
|
128 |
<p class="details"><strong>Phone:</strong> <span id="confirmPhone"></span></p>
|
129 |
</div>
|
|
|
130 |
</div>
|
131 |
|
132 |
<div id="statusMessage" style="display: none;">
|
|
|
259 |
let confirmation = event.results[0][0].transcript.trim().toLowerCase();
|
260 |
recognition.stop();
|
261 |
if (confirmation.includes("yes") || confirmation.includes("ok")) {
|
262 |
+
// Show confirmation page with details
|
263 |
showConfirmationPage();
|
264 |
} else {
|
265 |
captureMobile();
|
|
|
276 |
document.getElementById('confirmEmail').textContent = email;
|
277 |
document.getElementById('confirmPhone').textContent = phone;
|
278 |
|
279 |
+
// Automatically submit the details after a delay
|
280 |
+
setTimeout(submitRegistration, 6000); // 6 seconds delay
|
|
|
281 |
}
|
282 |
|
283 |
function submitRegistration() {
|