lokesh341 commited on
Commit
e35ea17
·
verified ·
1 Parent(s): 3b4f8a4

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +3 -6
templates/index.html CHANGED
@@ -269,12 +269,9 @@
269
  statusText.textContent = `Thank you for registering, ${name}!`;
270
  statusMessage.style.display = 'block';
271
  setTimeout(() => {
272
- statusText.textContent = 'Submitted Successfully!';
273
- // Wait 6 seconds for confirmation, then refresh after 15 seconds
274
- setTimeout(() => {
275
- window.location.reload();
276
- }, 15000); // 15 seconds delay for refresh
277
- }, 6000); // 6 seconds delay for showing confirmation message
278
  }
279
  } else {
280
  speak("There was an error submitting your details. Please try again.");
 
269
  statusText.textContent = `Thank you for registering, ${name}!`;
270
  statusMessage.style.display = 'block';
271
  setTimeout(() => {
272
+ // Directly refresh after 15 seconds from displaying the message
273
+ window.location.reload();
274
+ }, 15000); // 15 seconds delay for refresh
 
 
 
275
  }
276
  } else {
277
  speak("There was an error submitting your details. Please try again.");