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

Diff for /draft/form.min.js between version 1.96 and 1.97

version 1.96, 2024/03/31 16:52:11 version 1.97, 2024/03/31 17:05:41
Line 64  async function sendData() {
Line 64  async function sendData() {
                                 callback: function(token) {                                  callback: function(token) {
                                         const data = JSON.stringify({"add": mail, "sub": subj, "msg": mess, "tok": token});                                          const data = JSON.stringify({"add": mail, "sub": subj, "msg": mess, "tok": token});
                                         turnstile.remove();                                          turnstile.remove();
                                         info.textContent="Sending...";                                          info.textContent+="Sending...";
                                         console.log(data);                                          console.log(data);
 //                                      fetch("/feedbk/", {                                          fetch("/feedbk/", {
 //                                              headers: { "Content-Type": "application/json" },                                                  headers: { "Content-Type": "application/json" },
 //                                              credentials: "same-origin",                                                  credentials: "same-origin",
 //                                              mode: "same-origin",                                                  mode: "same-origin",
 //                                              method: "post",                                                  method: "post",
 //                                              body: data                                                  body: data
 //                                      })                                          })
 //                                      .then(response => response.json())                                          .then(response => response.json())
 //                                      .then(json => info.textContent=json['msg'])                                          .then(json => info.textContent=json['msg'])
   
                                 }                                  }
                         });                          });
                 });                  });

Legend:
Removed from v.1.96  
changed lines
  Added in v.1.97

https://cvs.kroczynski.net