nvm
This commit is contained in:
parent
090ca3c2d6
commit
c6878e5539
|
@ -4,7 +4,7 @@ function signup() {
|
|||
if (sent) return;
|
||||
var email = emailAddr.value;
|
||||
if (!validateEmail(email)) return;
|
||||
mailbtn.classList.add("fa-times");
|
||||
mailbtn.classList.add("fa-clock");
|
||||
mailbtn.classList.remove("mail-button");
|
||||
mailbtn.blur();
|
||||
console.log("Sending request...");
|
||||
|
@ -12,10 +12,8 @@ function signup() {
|
|||
var req = new XMLHttpRequest();
|
||||
req.onload = function () {
|
||||
console.log(this.status + ": " + this.responseText);
|
||||
if (this.status) {
|
||||
mailbtn.classList.remove("fa-times");
|
||||
mailbtn.classList.add("fa-check");
|
||||
}
|
||||
mailbtn.classList.remove("fa-clock");
|
||||
mailbtn.classList.add("fa-" + (this.status === 200 ? "check" : "times"));
|
||||
};
|
||||
req.open("POST", "https://whserver.dforms.point0.tech/589550963468140574");
|
||||
req.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
|
||||
|
|
Loading…
Reference in New Issue