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

Diff for /draft/form.min.js between version 1.93 and 1.94

version 1.93, 2024/03/31 16:36:02 version 1.94, 2024/03/31 16:50:24
Line 44  async function sendData() {
Line 44  async function sendData() {
                 info.textContent="One or more fields have an error. Please check and try again."                  info.textContent="One or more fields have an error. Please check and try again."
         } else {          } else {
                 var fcon = document.querySelectorAll(".wpcf7-form-control"),                  var fcon = document.querySelectorAll(".wpcf7-form-control"),
                         id = "(NULL)";  
   
                 info.textContent="Please wait..."                  info.textContent="Verifying..."
                 fcon.forEach((f) => {                  fcon.forEach((f) => {
                 f.disabled=true;                  f.disabled=true;
                         l=f;                          l=f;
Line 59  async function sendData() {
Line 58  async function sendData() {
                                 'response-field': false,                                  'response-field': false,
                                 sitekey: '0x4AAAAAAAVpXFEy152AON1L',                                  sitekey: '0x4AAAAAAAVpXFEy152AON1L',
                                 'error-callback': function(e) {                                  'error-callback': function(e) {
                                         info.textContent="Cloudflare Turnstile verification error. Try again later."                                          info.textContent="Verification error. Try again later."
                                           turnstile.remove();
                                 },                                  },
                                 callback: function(token) {                                  callback: function(token) {
                                         info.textContent=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();
 //                                      info.textContent="Sending...";                                          info.textContent="Sending...";
                                           console.log(data);
 //                                      fetch("/feedbk/", {  //                                      fetch("/feedbk/", {
 //                                              headers: { "Content-Type": "application/json" },  //                                              headers: { "Content-Type": "application/json" },
 //                                              credentials: "same-origin",  //                                              credentials: "same-origin",
Line 74  async function sendData() {
Line 75  async function sendData() {
 //                                      })  //                                      })
 //                                      .then(response => response.json())  //                                      .then(response => response.json())
 //                                      .then(json => info.textContent=json['msg'])  //                                      .then(json => info.textContent=json['msg'])
   
                                 }                                  }
                         });                          });
 //                                      turnstile.remove();  
                 });                  });
         };          };
 }  }

Legend:
Removed from v.1.93  
changed lines
  Added in v.1.94

https://cvs.kroczynski.net