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

Diff for /draft/form.min.js between version 1.36 and 1.64

version 1.36, 2024/03/28 20:13:40 version 1.64, 2024/03/30 15:51:42
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}`);
 /* --------------------- */  
 //var data="",  
 //      status="";  
 //$.post("/feedbk/", token, function(data, status){  
 //    console.log("Data: " + data + "\nStatus: " + status);  
 //});  
 /* --------------------- */  const dataToSend = JSON.stringify({"email": "hey@mail.com", "password": "101010"});
 var re="";  fetch("/feedbk/", {
 re=fetch('/feedbk/', {          credentials: "same-origin",
     method: 'POST',          mode: "same-origin",
     headers: {          method: "post",
         'Accept': 'application/json',          headers: { "Content-Type": "application/json" },
         'Content-Type': 'application/json'          body: dataToSend
     },  })
     body: JSON.stringify({ "cfem": "a@b.ru", "cfsu" : "subject", "cfme" : "message", "cfto" : "token" })        .then(response => response.json())
 });        .then(json => console.log(json))
  //  .then(response => response.json())  
  //  .then(response => console.log(JSON.stringify(response)))  
         console.log(re.text());  
   
   
   
                                 },                                  },

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.64

https://cvs.kroczynski.net