1const form = document.getElementById('sponsorInterestForm'); 2const submitBtn = document.getElementById('submitBtn'); 3const captchaInput = document.getElementById('g-recaptcha-response'); 4 5if (form) { 6 form.addEventListener('submit', function (e) { 7 e.preventDefault(); 8 9 console.log('FORM SUBMITTED'); 10 11 submitBtn.disabled = true; 12 13 grecaptcha.ready(function () { 14 15 console.log('reCAPTCHA READY'); 16 17 grecaptcha.execute(window.recaptchaSiteKey, { 18 action: 'sponsor_interest' 19 }) 20 .then(function (token) { 21 22 console.log('TOKEN:', token); 23 24 captchaInput.value = token; 25 26 console.log( 27 'Hidden input value:', 28 captchaInput.value 29 ); 30 31 form.submit(); 32 33 }) 34 .catch(function (error) { 35 36 console.error('reCAPTCHA ERROR:', error); 37 38 submitBtn.disabled = false; 39 40 alert('Captcha verification failed.'); 41 }); 42 }); 43 }); 44}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.