version 1.66, 2024/03/30 17:08:44 |
version 1.67, 2024/03/30 17:57:24 |
Line 26 async function sendData() { |
|
Line 26 async function sendData() { |
|
ii.textContent="One or more fields have an error. Please check and try again."; |
ii.textContent="One or more fields have an error. Please check and try again."; |
} else { |
} else { |
var fc = document.querySelectorAll(".wpcf7-form-control"); |
var fc = document.querySelectorAll(".wpcf7-form-control"); |
ii.textContent="All good."; |
ii.textContent="Checking..."; |
fc.forEach((f) => { |
fc.forEach((f) => { |
f.disabled=true; |
f.disabled=true; |
l=f; |
l=f; |
Line 44 async function sendData() { |
|
Line 44 async function sendData() { |
|
callback: function(token) { |
callback: function(token) { |
const dataToSend = JSON.stringify({"add": em, "sub": su, "msg": ms, "tok": token}); |
const dataToSend = JSON.stringify({"add": em, "sub": su, "msg": ms, "tok": token}); |
console.log(`JSON: ${dataToSend}`); |
console.log(`JSON: ${dataToSend}`); |
ii.textContent="Sending"; |
ii.textContent="Sending..."; |
|
|
|
|
|
|