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

Diff for /draft/form.min.js between version 1.86 and 1.87

version 1.86, 2024/03/31 16:02:41 version 1.87, 2024/03/31 16:13:39
Line 51  async function sendData() {
Line 51  async function sendData() {
                         l=f;                          l=f;
                 });                  });
                 l.style.visibility="hidden";                  l.style.visibility="hidden";
         }  
   
 // ============================================================= //  
   
 /*  
                 turnstile.ready(function() {                  turnstile.ready(function() {
                         turnstile.render('#cfcontainer', {                          turnstile.render('#cfcontainer', {
                                   retry: 'never',
                                 theme: 'light',                                  theme: 'light',
                                 sitekey: '0x4AAAAAAAVpXFEy152AON1L',  
                                 'response-field': false,                                  'response-field': false,
                                 retry: 'never',                                  sitekey: '0x4AAAAAAAVpXFEy152AON1L',
                                 'error-callback': function(e) {                                  'error-callback': function(e) {
                                         ii.textContent="Cloudflare Turnstile verification error. Try again later."                                          info.textContent="Cloudflare Turnstile verification error. Try again later."
                                 },                                  },
                                 callback: function(token) {                                  callback: function(token) {
                                         const dataToSend = JSON.stringify({"add": em, "sub": su, "msg": ms, "tok": token});                                          const data = JSON.stringify({"add": mail, "sub": subj, "msg": mess, "tok": token});
                                         ii.textContent="Sending...";                                          info.textContent="Sending...";
                                   }
                           });
                   });
                   info.textContent="Fin";
                   turnstile.remove();
           };
   }
   
   // ============================================================= //
 fetch("/feedbk/", {  /*fetch("/feedbk/", {
         credentials: "same-origin",          credentials: "same-origin",
         mode: "same-origin",          mode: "same-origin",
         method: "post",          method: "post",
Line 80  fetch("/feedbk/", {
Line 81  fetch("/feedbk/", {
 })  })
       .then(response => response.json())        .then(response => response.json())
           .then(json => ii.textContent=json['msg'])            .then(json => ii.textContent=json['msg'])
   
   
                                 },  
                         });  
   
                 });  
                 turnstile.remove();  
                 turnstile.close();                  turnstile.close();
         }          }*/
         */  
 };  
   
 form.addEventListener("submit", (event) => {  form.addEventListener("submit", (event) => {
         event.preventDefault();          event.preventDefault();

Legend:
Removed from v.1.86  
changed lines
  Added in v.1.87

https://cvs.kroczynski.net