1var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ 2let window = _____WB$wombat$assign$function_____("window"); 3let self = _____WB$wombat$assign$function_____("self"); 4let document = _____WB$wombat$assign$function_____("document"); 5let location = _____WB$wombat$assign$function_____("location"); 6let top = _____WB$wombat$assign$function_____("top"); 7let parent = _____WB$wombat$assign$function_____("parent"); 8let frames = _____WB$wombat$assign$function_____("frames"); 9let opens = _____WB$wombat$assign$function_____("opens"); 10( function( $ ) { 11 var cptch_reload_events = {}; 12 13 $( document ).on( "touchstart", function( event ) { 14 event = event || window.event; 15 var item = $( event.target ); 16 if ( item.attr( 'name' ) == 'ac_form_submit' ) { 17 cptch_reload( item, false, 'ac_form_submit' ); 18 cptch_reload_events['ac_form_submit'] = setInterval( cptch_reload, ( cptch_vars.time_limit*1000 ), item, false, 'ac_form_submit' ); 19 } 20 }).ready( function() { 21 $( '.cptch_ajax_wrap' ).each( function( index ) { 22 cptch_reload( $( this ), true, index ); 23 cptch_reload_events[ index ] = setInterval( cptch_reload, ( cptch_vars.time_limit*1000 ), $( this ), true, index ); 24 }); 25 }); 26 27 function cptch_reload( object, is_ajax_load, index ) { 28 is_ajax_load = is_ajax_load || false; 29 if ( is_ajax_load ) { 30 var captcha = object; 31 } else { 32 var captcha = object.closest( 'form' ).find( '.cptch_wrap' ); 33 } 34 if ( ! captcha.length ) 35 return false; 36 37 var captcha_block = captcha.parent(), 38 input_class = captcha.attr( 'data-cptch-class' ), 39 form_slug = captcha.attr( 'data-cptch-form' ); 40 $.ajax({ 41 type: 'POST', 42 url: cptch_vars.ajaxurl, 43 data: { 44 action: 'cptch_reload', 45 cptch_nonce: cptch_vars.nonce, 46 cptch_input_class: input_class, 47 cptch_form_slug: form_slug 48 }, 49 success: function( result ) { 50 if ( input_class === '' ) 51 captcha.replaceWith( result ); /* for default forms */ 52 else 53 captcha_block.replaceWith( result ); /* for custom forms */ 54 }, 55 error : function ( xhr, ajaxOptions, thrownError ) { 56 clearInterval( cptch_reload_events[ index ] ); 57 alert( xhr.status + ': ' + thrownError ); 58 } 59 }); 60 } 61})(jQuery); 62}
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.