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

Diff for /draft/form.min.js between version 1.23 and 1.30

version 1.23, 2024/03/28 19:16:14 version 1.30, 2024/03/28 19:43:10
Line 1 
Line 1 
 //const form = document.querySelector("#cform");  const form = document.querySelector("#cform");
   
 function validateEmail(email) {  function validateEmail(email) {
         const regex = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;          const regex = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;
Line 49  async function sendData() {
Line 49  async function sendData() {
                         turnstile.render('#cfcontainer', {                          turnstile.render('#cfcontainer', {
                                 theme: 'light',                                  theme: 'light',
                                 sitekey: '0x4AAAAAAAVpXFEy152AON1L',                                  sitekey: '0x4AAAAAAAVpXFEy152AON1L',
                                   response-field: 'false',
                                   retry: 'never',
                                 'error-callback': function(e) {                                  'error-callback': function(e) {
                                         turnstile.remove();                                          turnstile.remove();
                                 },                                  },
Line 56  async function sendData() {
Line 58  async function sendData() {
                                         ii.textContent="Sent";                                          ii.textContent="Sent";
                                         console.log(`Challenge Success ${token}`);                                          console.log(`Challenge Success ${token}`);
 //                                      postData();  //                                      postData();
 var data=`${token};${em};${su};${ms}`,  var data="",
         status="";          status="";
 $.post("/feedbk/", function(data, status){  $.post("/feedbk/", token, function(data, status){
     alert("Data: " + data + "\nStatus: " + status);      console.log("Data: " + data + "\nStatus: " + status);
   });
   
   
   

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.30

https://cvs.kroczynski.net