Update templates/index.html
Browse files- templates/index.html +3 -2
templates/index.html
CHANGED
@@ -88,7 +88,7 @@
|
|
88 |
<!-- Welcome Page -->
|
89 |
<div class="container" id="welcomePage">
|
90 |
<h1>Welcome to Biriyani Hub 🍽</h1>
|
91 |
-
|
92 |
<p class="status" id="status">🔊 Please say 'new' to register or 'existing' to login.</p>
|
93 |
</div>
|
94 |
|
@@ -149,7 +149,8 @@
|
|
149 |
window.speechSynthesis.speak(speech);
|
150 |
}
|
151 |
function askLoginOrRegister() {
|
152 |
-
|
|
|
153 |
recognition.start();
|
154 |
recognition.onresult = function (event) {
|
155 |
let response = event.results[0][0].transcript.trim().toLowerCase();
|
|
|
88 |
<!-- Welcome Page -->
|
89 |
<div class="container" id="welcomePage">
|
90 |
<h1>Welcome to Biriyani Hub 🍽</h1>
|
91 |
+
|
92 |
<p class="status" id="status">🔊 Please say 'new' to register or 'existing' to login.</p>
|
93 |
</div>
|
94 |
|
|
|
149 |
window.speechSynthesis.speak(speech);
|
150 |
}
|
151 |
function askLoginOrRegister() {
|
152 |
+
speak("Welcome to Biriyani Hub .", function () {
|
153 |
+
speak("Are you a new customer or an existing customer? Say 'new' to register or 'existing' to login.", function () {
|
154 |
recognition.start();
|
155 |
recognition.onresult = function (event) {
|
156 |
let response = event.results[0][0].transcript.trim().toLowerCase();
|