Spaces:
Sleeping
Sleeping
Update templates/index.html
Browse files- templates/index.html +32 -14
templates/index.html
CHANGED
|
@@ -369,21 +369,39 @@
|
|
| 369 |
};
|
| 370 |
}
|
| 371 |
|
| 372 |
-
function submitLogin() {
|
| 373 |
-
|
| 374 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 375 |
|
| 376 |
-
// Simulate login check
|
| 377 |
-
if (loginEmail && loginMobile) {
|
| 378 |
-
document.getElementById('statusText').textContent = 'Login successful! Redirecting...';
|
| 379 |
-
document.getElementById('statusMessage').style.display = 'block';
|
| 380 |
-
setTimeout(() => {
|
| 381 |
-
window.location.href = 'https://huggingface.co/spaces/Subbu1304/AIvoicemenu1geetha'; // Redirect to dashboard
|
| 382 |
-
}, 3000);
|
| 383 |
-
} else {
|
| 384 |
-
speak("Please enter valid login details.");
|
| 385 |
-
}
|
| 386 |
-
}
|
| 387 |
|
| 388 |
window.onload = function () {
|
| 389 |
askLoginOrRegister();
|
|
|
|
| 369 |
};
|
| 370 |
}
|
| 371 |
|
| 372 |
+
// function submitLogin() {
|
| 373 |
+
// const loginEmail = document.getElementById('loginEmail').value;
|
| 374 |
+
// const loginMobile = document.getElementById('loginMobile').value;
|
| 375 |
+
|
| 376 |
+
// // Simulate login check
|
| 377 |
+
// if (loginEmail && loginMobile) {
|
| 378 |
+
// document.getElementById('statusText').textContent = 'Login successful! Redirecting...';
|
| 379 |
+
// document.getElementById('statusMessage').style.display = 'block';
|
| 380 |
+
// setTimeout(() => {
|
| 381 |
+
// window.location.href = 'https://huggingface.co/spaces/Subbu1304/AIvoicemenu1geetha'; // Redirect to dashboard
|
| 382 |
+
// }, 3000);
|
| 383 |
+
// } else {
|
| 384 |
+
// speak("Please enter valid login details.");
|
| 385 |
+
// }
|
| 386 |
+
// }
|
| 387 |
+
function submitLogin() {
|
| 388 |
+
const loginEmail = document.getElementById('loginEmail').value;
|
| 389 |
+
const loginMobile = document.getElementById('loginMobile').value;
|
| 390 |
+
|
| 391 |
+
// Simulate login check
|
| 392 |
+
if (loginEmail && loginMobile) {
|
| 393 |
+
document.getElementById('statusText').textContent = 'Login successful! Redirecting...';
|
| 394 |
+
document.getElementById('statusMessage').style.display = 'block';
|
| 395 |
+
|
| 396 |
+
// Redirecting the user to Hugging Face space after 3 seconds
|
| 397 |
+
setTimeout(() => {
|
| 398 |
+
window.location.href = 'https://huggingface.co/spaces/Subbu1304/AIvoicemenu1geetha'; // Correct Hugging Face URL
|
| 399 |
+
}, 3000);
|
| 400 |
+
} else {
|
| 401 |
+
speak("Please enter valid login details.");
|
| 402 |
+
}
|
| 403 |
+
}
|
| 404 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 405 |
|
| 406 |
window.onload = function () {
|
| 407 |
askLoginOrRegister();
|