Update Singup Modal Javascript
This commit is contained in:
parent
53c4fb0f89
commit
93532e65ca
1 changed files with 0 additions and 4 deletions
|
@ -79,7 +79,6 @@ function submitSignup() {
|
||||||
submitBtn.innerHTML = '';
|
submitBtn.innerHTML = '';
|
||||||
submitBtn.appendChild(spinner);
|
submitBtn.appendChild(spinner);
|
||||||
|
|
||||||
|
|
||||||
// Get the values of the signup form fields
|
// Get the values of the signup form fields
|
||||||
const name = document.getElementById("name").value;
|
const name = document.getElementById("name").value;
|
||||||
const email = document.getElementById("email").value;
|
const email = document.getElementById("email").value;
|
||||||
|
@ -112,15 +111,12 @@ function submitSignup() {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
// Enable the button and remove the spinner after 5 seconds
|
// Enable the button and remove the spinner after 5 seconds
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
submitBtn.disabled = false;
|
submitBtn.disabled = false;
|
||||||
submitBtn.innerHTML = 'Sign Up';
|
submitBtn.innerHTML = 'Sign Up';
|
||||||
}, 5000);
|
}, 5000);
|
||||||
sleep(5000).then(() => { submitBtn.disabled = false; });
|
sleep(5000).then(() => { submitBtn.disabled = false; });
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue