1$(document).ready(function () { 2 var config = window.__contactConfig; 3 4 $('#send-contact').click(function () { 5 var recaptchaV3SiteKey = $('#GoogleReCaptchaToken').data('sitekey'); 6 7 grecaptcha.ready(function () { 8 grecaptcha.execute(recaptchaV3SiteKey, { action: 'submit' }).then(function (token) { 9 if (!token) { 10 return; 11 } 12 13 var form = $('#contact-form'); 14 $('#send-contact').prop('disabled', 'true'); 15 16 var postData = { 17 fullname: $('#' + config.fullnameId).val(), 18 email: $('#' + config.emailId).val(), 19 message: $('#' + config.messageId).val(), 20 __RequestVerificationToken: $('input[name="__RequestVerificationToken"]', form).val(), 21 recaptcha: token 22 }; 23 24 $.ajax({ 25 url: config.actionUrl, 26 type: 'post', 27 data: postData, 28 success: function (response) { 29 if (response.success) { 30 $('.content-area-item-form').addClass('d-none'); 31 $('.success-message').removeClass('d-none'); 32 setTimeout(function () { 33 window.location.reload(); 34 }, 5000); 35 } else { 36 $('.fail-message').removeClass('d-none'); 37 $('#send-contact').attr('disabled', false); 38 } 39 } 40 }); 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.