=================================================================== RCS file: /cvs/cvs/draft/form.min.js,v retrieving revision 1.64 retrieving revision 1.67 diff -u -p -r1.64 -r1.67 --- draft/form.min.js 2024/03/30 15:51:42 1.64 +++ draft/form.min.js 2024/03/30 17:57:24 1.67 @@ -26,7 +26,7 @@ async function sendData() { ii.textContent="One or more fields have an error. Please check and try again."; } else { var fc = document.querySelectorAll(".wpcf7-form-control"); - ii.textContent="All good."; + ii.textContent="Checking..."; fc.forEach((f) => { f.disabled=true; l=f; @@ -42,15 +42,12 @@ async function sendData() { turnstile.remove(); }, callback: function(token) { - ii.textContent="Sent"; - console.log(`Challenge Success ${token}`); - + const dataToSend = JSON.stringify({"add": em, "sub": su, "msg": ms, "tok": token}); + console.log(`JSON: ${dataToSend}`); + ii.textContent="Sending..."; - - -const dataToSend = JSON.stringify({"email": "hey@mail.com", "password": "101010"}); fetch("/feedbk/", { credentials: "same-origin", mode: "same-origin",