=================================================================== RCS file: /cvs/cvs/draft/form.min.js,v retrieving revision 1.98 retrieving revision 1.99 diff -u -p -r1.98 -r1.99 --- draft/form.min.js 2024/03/31 17:14:06 1.98 +++ draft/form.min.js 2024/04/01 19:04:36 1.99 @@ -63,8 +63,7 @@ async function sendData() { }, callback: function(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/", { headers: { "Content-Type": "application/json" }, @@ -75,6 +74,7 @@ async function sendData() { }) .then(response => response.json()) .then(json => info.textContent=parseString(json['msg'])) + .then(turnstile.remove()); } }); });