lokesh341 commited on
Commit
072c36c
·
verified ·
1 Parent(s): 3af09fe

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +4 -2
templates/index.html CHANGED
@@ -26,7 +26,7 @@
26
  h1 {
27
  font-size: 30px;
28
  font-weight: bold;
29
- color: #ff6a00;
30
  }
31
  label {
32
  font-size: 18px;
@@ -122,9 +122,11 @@
122
  let transcript = event.results[0][0].transcript.trim();
123
 
124
  // Replace spoken variations of "at" with "@" for emails
125
- transcript = transcript.replace(/\bat\b/g, '@');
126
 
 
127
  emailInput.value = transcript;
 
128
  recognition.stop();
129
 
130
  status.textContent = "Registration complete.";
 
26
  h1 {
27
  font-size: 30px;
28
  font-weight: bold;
29
+ color: #ff6a00; /* Bright orange for title */
30
  }
31
  label {
32
  font-size: 18px;
 
122
  let transcript = event.results[0][0].transcript.trim();
123
 
124
  // Replace spoken variations of "at" with "@" for emails
125
+ transcript = transcript.replace(/\bat\b/g, '@').trim();
126
 
127
+ // Remove unwanted spaces from the email input
128
  emailInput.value = transcript;
129
+
130
  recognition.stop();
131
 
132
  status.textContent = "Registration complete.";