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

Diff for /draft/form.min.js between version 1.57 and 1.63

version 1.57, 2024/03/29 21:16:42 version 1.63, 2024/03/29 21:30:03
Line 57  async function sendData() {
Line 57  async function sendData() {
 //});  //});
 /* --------------------- */  /* --------------------- */
 //ovar re="";  //ovar re="";
 //const dataToSend = JSON.stringify({"email": "hey@mail.com", "password": "101010"});  const dataToSend = JSON.stringify({"email": "hey@mail.com", "password": "101010"});
 //let dataReceived = "";  //let dataReceived = "";
 //fetch("/feedbk/", {  //fetch("/feedbk/", {
 //   credentials: "same-origin",  //   credentials: "same-origin",
Line 66  async function sendData() {
Line 66  async function sendData() {
 //    headers: { "Content-Type": "application/json" },  //    headers: { "Content-Type": "application/json" },
 //    body: dataToSend  //    body: dataToSend
 //})  //})
 //    .then(resp => {   //   .then(resp => {
 //        if (resp.status === 200) {  //        if (resp.status === 200) {
 //            return resp.json()  //            return resp.json()
 //       } else {  //       } else {
Line 75  async function sendData() {
Line 75  async function sendData() {
 //        }  //        }
 //    })  //    })
 //    .then(dataJson => {  //    .then(dataJson => {
 //              console.log(dataJson.get("a"));  
 //        dataReceived = JSON.parse(dataJson.getJSON);  //        dataReceived = JSON.parse(dataJson.getJSON);
 //    })  //    })
 //    .catch(err => {  //    .catch(err => {
Line 84  async function sendData() {
Line 83  async function sendData() {
 //    })  //    })
 //console.log(`Received: ${dataReceived}`)  //console.log(`Received: ${dataReceived}`)
   
 fetch('https://draft.hgk.global/feedbk/')  fetch("/feedbk/", {
           credentials: "same-origin",
           mode: "same-origin",
           method: "post",
           headers: { "Content-Type": "application/json" },
           body: dataToSend
   })
       .then(response => response.json())        .then(response => response.json())
       .then(json => console.log(json))        .then(json => console.log(json))
   

Legend:
Removed from v.1.57  
changed lines
  Added in v.1.63

https://cvs.kroczynski.net