1(function ( $, config ) { 2 $( function () { 3 $( document ).on( 'change', '.itsec-recaptcha-opt-in__agree input', function (e) { 4 var $optins = $( '.itsec-recaptcha-opt-in' ) 5 .addClass( 'itsec-recaptcha-opt-in--loading' ); 6 7 $.ajax( { 8 url : config.sdk, 9 dataType: 'script', 10 cache : true, 11 success : function () { 12 const render = []; 13 14 $optins.each( function () { 15 var $optin = $( this ); 16 $optin.parents( 'form' ).append( $( '<input type="hidden">' ).attr( { 17 name : 'recaptcha-opt-in', 18 value: 'true', 19 } ) ); 20 21 var $template = $( '.itsec-recaptcha-opt-in__template', $optin ); 22 render.push( new Promise( function ( resolve ) { 23 setTimeout( function () { 24 $optin.replaceWith( $template.html() ); 25 resolve(); 26 }, 1000 ) 27 } ) ); 28 } ); 29 30 const load = function() { 31 if ( config.load && window[config.load] ) { 32 if ( window.grecaptcha ) { 33 window.grecaptcha.ready( window[config.load] ); 34 } else { 35 window[config.load](); 36 } 37 } 38 }; 39 40 Promise.allSettled( render ).then( load ); 41 }, 42 } ); 43 } ); 44 } ); 45})( jQuery, window['ITSECRecaptchaOptIn'] );
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.