1(function ($) { 2 3 /** 4 * recaptcha v3 js. 5 */ 6 Drupal.behaviors.reCaptchaV3 = { 7 attach: function (context, settings) { 8 $('input[data-recaptcha-v3-sitekey]', context).once('recaptcha-v3').each(function () { 9 var $input = $(this); 10 var timer = setInterval(function () { 11 if (typeof grecaptcha !== 'undefined') { 12 grecaptcha.ready(function () { 13 grecaptcha.execute( 14 $input.data('recaptcha-v3-sitekey'), 15 { 16 action: $input.data('recaptcha-v3-action') 17 }) 18 .then(function (token) { 19 $input.val(token); 20 $input.trigger('change'); 21 }); 22 }); 23 clearInterval(timer); 24 } 25 }, 500); 26 }); 27 } 28 }; 29 30})(jQuery);
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.