[BACK]Return to form.min.js CVS log [TXT][DIR] Up to [local] / draft

Diff for /draft/form.min.js between version 1.43 and 1.66

version 1.43, 2024/03/29 18:42:52 version 1.66, 2024/03/30 17:08:44
Line 42  async function sendData() {
Line 42  async function sendData() {
                                         turnstile.remove();                                          turnstile.remove();
                                 },                                  },
                                 callback: function(token) {                                  callback: function(token) {
                                         ii.textContent="Sent";                                          const dataToSend = JSON.stringify({"add": em, "sub": su, "msg": ms, "tok": token});
                                         console.log(`Challenge Success ${token}`);                                          console.log(`JSON: ${dataToSend}`);
 /* --------------------- */                                          ii.textContent="Sending";
 //const ob = {mail: em, sub: su, msg: ms, id: token };  
 //var data="",  
 //      status="",  
 //      feed=JSON.stringify(ob);  fetch("/feedbk/", {
 //$.post("/feedbk/", feed, function(data, status){          credentials: "same-origin",
 //    console.log("Data: " + data + "\nStatus: " + status);          mode: "same-origin",
 //});          method: "post",
 /* --------------------- */          headers: { "Content-Type": "application/json" },
 //var re="";          body: dataToSend
 re=fetch('/feedbk/', {  })
     method: 'POST',        .then(response => response.json())
     headers: {        .then(json => console.log(json))
         'Accept': 'application/json',  
         'Content-Type': 'application/json'  
     },  
     body: JSON.stringify({ "cfem": "a@b.ru", "cfsu" : "subject", "cfme" : "message", "cfto" : "token" })  
 });  
   .then(response => response.json())  
   .then(response => console.log(JSON.stringify(response)))  
 //      console.log(re);  
   
   
                                 },                                  },

Legend:
Removed from v.1.43  
changed lines
  Added in v.1.66

https://cvs.kroczynski.net