lokesh341 commited on
Commit
c179edd
·
verified ·
1 Parent(s): 7004432

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +4 -8
templates/index.html CHANGED
@@ -8,7 +8,7 @@
8
  <style>
9
  body {
10
  font-family: 'Roboto', sans-serif;
11
- background: linear-gradient(135deg, #f4c542, #ff8f6a); /* Light gradient background */
12
  margin: 0;
13
  display: flex;
14
  justify-content: center;
@@ -26,7 +26,7 @@
26
  h1 {
27
  font-size: 30px;
28
  font-weight: bold;
29
- color: #ff6a00; /* Bright orange for title */
30
  }
31
  label {
32
  font-size: 18px;
@@ -60,18 +60,13 @@
60
  <div class="container">
61
  <h1>Welcome to Biryani Hub</h1>
62
 
63
- <!-- Name Input Field -->
64
  <label for="name">Your Name</label>
65
  <input type="text" id="name" placeholder="Your name will appear here..." readonly>
66
 
67
- <!-- Email Input Field -->
68
  <label for="email">Your Email</label>
69
  <input type="text" id="email" placeholder="Your email will appear here..." readonly>
70
 
71
- <!-- Info Message for Listening -->
72
  <p class="info" id="infoMessage">Listening will start automatically...</p>
73
-
74
- <!-- Status Message -->
75
  <p class="status" id="status">Initializing...</p>
76
  </div>
77
 
@@ -102,6 +97,7 @@
102
  const nameInput = document.getElementById('name');
103
  status.textContent = "Listening for your name...";
104
  recognition.start();
 
105
  recognition.onresult = function(event) {
106
  let transcript = event.results[0][0].transcript.trim().toUpperCase().replace(/\s+/g, "");
107
 
@@ -144,10 +140,10 @@
144
 
145
  status.textContent = "Listening for your email...";
146
  recognition.start();
 
147
  recognition.onresult = function(event) {
148
  let transcript = event.results[0][0].transcript.trim().toUpperCase().replace(/\s+/g, "");
149
 
150
- // Replace "AT" with "@", "DOT" with "."
151
  transcript = transcript.replace(/\bAT\b/g, "@").replace(/\bDOT\b/g, ".");
152
 
153
  if (transcript === "NEXT") {
 
8
  <style>
9
  body {
10
  font-family: 'Roboto', sans-serif;
11
+ background: linear-gradient(135deg, #f4c542, #ff8f6a);
12
  margin: 0;
13
  display: flex;
14
  justify-content: center;
 
26
  h1 {
27
  font-size: 30px;
28
  font-weight: bold;
29
+ color: #ff6a00;
30
  }
31
  label {
32
  font-size: 18px;
 
60
  <div class="container">
61
  <h1>Welcome to Biryani Hub</h1>
62
 
 
63
  <label for="name">Your Name</label>
64
  <input type="text" id="name" placeholder="Your name will appear here..." readonly>
65
 
 
66
  <label for="email">Your Email</label>
67
  <input type="text" id="email" placeholder="Your email will appear here..." readonly>
68
 
 
69
  <p class="info" id="infoMessage">Listening will start automatically...</p>
 
 
70
  <p class="status" id="status">Initializing...</p>
71
  </div>
72
 
 
97
  const nameInput = document.getElementById('name');
98
  status.textContent = "Listening for your name...";
99
  recognition.start();
100
+
101
  recognition.onresult = function(event) {
102
  let transcript = event.results[0][0].transcript.trim().toUpperCase().replace(/\s+/g, "");
103
 
 
140
 
141
  status.textContent = "Listening for your email...";
142
  recognition.start();
143
+
144
  recognition.onresult = function(event) {
145
  let transcript = event.results[0][0].transcript.trim().toUpperCase().replace(/\s+/g, "");
146
 
 
147
  transcript = transcript.replace(/\bAT\b/g, "@").replace(/\bDOT\b/g, ".");
148
 
149
  if (transcript === "NEXT") {