var _____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; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); ( function( $ ) { $( document ).ready( function() { cptch_init(); }); })(jQuery); /** * Add custom events for captcha`s elevents * @param void * @return void */ function cptch_init() { (function($) { /* reload captcha */ $( '.cptch_reload_button' ).click( function( event ) { event.preventDefault(); var block_class = $( this ).attr( 'class' ), captcha = $( this ).parent().parent( '.cptch_wrap' ); $( this ).addClass( 'cptch_active' ); if ( captcha.length ) { $.ajax({ type: 'POST', url: cptch_vars.ajaxurl, data: { action: 'cptch_reload', cptch_nonce: cptch_vars.nonce }, success: function( result ) { captcha.replaceWith( result ); cptch_init(); }, error : function ( xhr, ajaxOptions, thrownError ) { alert( xhr.status ); alert( thrownError ); } }); } }); /* enlarge images by click on mobile devices */ if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Windows Phone|Opera Mini/i.test( navigator.userAgent ) && cptch_vars.enlarge == '1' ) { $( '.cptch_img' ).click( function( event ) { event.preventDefault(); var reduce = $( this ).hasClass( 'cptch_reduce' ); if ( $( this ).hasClass( 'cptch_reduce' ) ) $( this ).css({ zIndex: 1 }).animate({ width: $( this ).width() / 2 + 'px' }, 800 ).toggleClass( 'cptch_reduce' ); else $( this ).css({ position: 'absolute', zIndex: 2 }).animate({ width: $( this ).width() * 2 + 'px' }, 800 ).toggleClass( 'cptch_reduce' ); $( '.cptch_span' ).children( '.cptch_reduce' ).not( this ).each( function() { $( this ).css({ zIndex: 1 }).animate({ width: $( this ).width() / 2 + 'px' }, 800 ).toggleClass( 'cptch_reduce' ); }); }).parent( '.cptch_span' ).each( function() { var image = $( this ).children( 'img' ); if ( image.length ) { $( this ).css({ width: image.width() + 'px', height: image.height() + 'px', }); } }); } })(jQuery); } } /* playback timings (ms): captures_list: 169.876 exclusion.robots: 0.082 exclusion.robots.policy: 0.076 cdx.remote: 0.063 esindex: 0.009 LoadShardBlock: 146.167 (3) PetaboxLoader3.datanode: 173.994 (4) CDXLines.iter: 16.038 (3) load_resource: 108.473 PetaboxLoader3.resolve: 22.333 */