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

Diff for /draft/form.min.js between version 1.35 and 1.65

version 1.35, 2024/03/28 20:10:52 version 1.65, 2024/03/30 16:16:46
Line 44  async function sendData() {
Line 44  async function sendData() {
                                 callback: function(token) {                                  callback: function(token) {
                                         ii.textContent="Sent";                                          ii.textContent="Sent";
                                         console.log(`Challenge Success ${token}`);                                          console.log(`Challenge Success ${token}`);
 /* --------------------- */                                          const dataToSend = JSON.stringify({"add": em, "sub": su, "msg": ms, "tok": token});
 //var data="",                                          console.log(`JSON: ${dataToSend}`);
 //      status="";  
 //$.post("/feedbk/", token, function(data, status){  
 //    console.log("Data: " + data + "\nStatus: " + status);  
 //});  fetch("/feedbk/", {
 /* --------------------- */          credentials: "same-origin",
 var re="";          mode: "same-origin",
 fetch('/feedbk/', {          method: "post",
     method: 'POST',          headers: { "Content-Type": "application/json" },
     headers: {          body: dataToSend
         'Accept': 'application/json',  })
         'Content-Type': 'application/json'        .then(response => response.json())
     },        .then(json => console.log(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(response.text());  
   
   
                                 },                                  },

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.65

https://cvs.kroczynski.net