1window.recaptcha_success_callback_instance = null; 2window.recaptcha_success_callback = function() {}; 3 4google_captcha_onload = function(token) { 5 setTimeout(function() { 6 try { 7 if (typeof grecaptcha === 'undefined') { 8 return; 9 } 10 if (!$('body').hasClass('protected-path-login-mode')) { 11 $('.contact_form_captcha_enabled').each(function() { 12 if (!$(this).hasClass('initialized')) { 13 14 // only initialise captcha for the captcha element inside this form 15 // cos that's not how it used to work ¯\_(ã)_/¯ 16 let captcha_container = $(this).find('#contact_form_recaptcha_container')[0] 17 let is_visible = $(this).hasClass('contact_form_captcha_visible') 18 grecaptcha.render(captcha_container, { 19 sitekey: '6LeQ5TQaAAAAAL0PpYABhN5kYFLmywEMGlK0OD2-', 20 size: is_visible ? 'normal' : 'invisible', 21 badge: 'bottomright', 22 callback: function(token) { 23 if (typeof window.recaptcha_error_timeout != 'undefined') { 24 clearTimeout(window.recaptcha_error_timeout); 25 } 26 27 $('input[name="g-recaptcha-response"]').val(token); 28 $('body').addClass('contact_form_captcha_challenge_passed'); 29 window.recaptcha_success_callback(window.recaptcha_success_callback_instance); 30 }, 31 expired_callback: function() { 32 h.alert('An error occurred, please refresh and try again. If you are still having difficulties please contact us.'); 33 }, 34 error_callback: function() { 35 h.alert('An error occurred, please refresh and try again. If you are still having difficulties please contact us.'); 36 } 37 }); 38 } 39 $(this).addClass('initialized'); 40 }); 41 } 42 } catch(err) { 43 console.log(err) 44 } 45 }, 200, token); 46};
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.