version 1.97, 2024/03/31 17:05:41 |
version 1.100, 2024/04/02 06:30:42 |
Line 63 async function sendData() { |
|
Line 63 async function sendData() { |
|
}, |
}, |
callback: function(token) { |
callback: function(token) { |
const data = JSON.stringify({"add": mail, "sub": subj, "msg": mess, "tok": token}); |
const data = JSON.stringify({"add": mail, "sub": subj, "msg": mess, "tok": token}); |
turnstile.remove(); |
info.textContent="Sending..."; |
info.textContent+="Sending..."; |
|
console.log(data); |
|
fetch("/feedbk/", { |
fetch("/feedbk/", { |
headers: { "Content-Type": "application/json" }, |
headers: { "Content-Type": "application/json" }, |
credentials: "same-origin", |
credentials: "same-origin", |
Line 75 async function sendData() { |
|
Line 73 async function sendData() { |
|
}) |
}) |
.then(response => response.json()) |
.then(response => response.json()) |
.then(json => info.textContent=json['msg']) |
.then(json => info.textContent=json['msg']) |
|
.then(turnstile.remove()); |
} |
} |
}); |
}); |
}); |
}); |