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

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

version 1.40, 2024/03/28 20:31:33 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});
 const ob = {cfem: $cfem, cfsu: $cfsu, cfme: $cfme, cfto: $token };                                          console.log(`JSON: ${dataToSend}`);
 var data="",  
         status="",  
         feed=JSON.stringify(ob);  
 $.post("/feedbk/", feed, function(data, status){  fetch("/feedbk/", {
     console.log("Data: " + data + "\nStatus: " + status);          credentials: "same-origin",
 });          mode: "same-origin",
 /* --------------------- */          method: "post",
 //var re="";          headers: { "Content-Type": "application/json" },
 //re=fetch('/feedbk/', {          body: dataToSend
 //    method: 'POST',  })
 //    headers: {        .then(response => response.json())
 //        'Accept': 'application/json',        .then(json => console.log(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.40  
changed lines
  Added in v.1.65

https://cvs.kroczynski.net