1jQuery(document).ready(function() { 2 jQuery('.fc-form').each(function(){ 3 form = jQuery(this); 4 var key = form.find('.captcha-placeholder').attr('data-site-key'); 5 if (typeof key !== 'undefined' && key !== '' && window.fc_reCaptcha !== true) { 6 jQuery.getScript('https://www.google.com/recaptcha/api.js?render='+key); 7 window.fc_reCaptcha = true 8 } 9 }); 10 11 jQuery(document).bind('formcraft_submit_trigger', function(event, form, data, abort) { 12 var key = form.find('.captcha-placeholder').attr('data-site-key'); 13 var token = form.find('.recaptcha-token').val(); 14 if (form.find('.recaptcha-token').length === 0) { 15 return 16 } 17 if (token === '' || typeof token === 'undefined') { 18 abort.abort = true; 19 grecaptcha.ready(function() { 20 grecaptcha.execute(key, { action: 'submit' }).then(function(token) { 21 form.find('.recaptcha-token').val(token); 22 form.find('.submit-button').prop('disabled', false); 23 form.find('.submit-cover').removeClass('disabled'); 24 FormCraftSubmitForm(form, 'all'); 25 }); 26 }); 27 } 28 }); 29 30 jQuery(document).bind('formcraft_submit_success_trigger', function(event, form, response) { 31 form.find('.recaptcha-token').val(''); 32 }); 33})
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.