1document.addEventListener( 'advanced_ads_privacy', function ( e ) { 2 ( 'accepted' !== e.detail.state && 'not_needed' !== e.detail.state ) || 3 window.advanced_ads_sticky_settings.placements.forEach( function ( e ) { 4 document 5 .querySelectorAll( 6 'script[type="text/plain"][data-tcf="waiting-for-consent"][data-placement="' + 7 e + 8 '"]' 9 ) 10 .forEach( advads.privacy.decode_ad ); 11 } ); 12} ), 13 document.addEventListener( 'aagam_empty_slot', function ( e ) { 14 const t = document.getElementById( e.detail ); 15 if ( ! t ) return; 16 const n = t.closest( 17 '.' + 18 document.body.classList.value 19 .split( 'aa-prefix-' )[ 1 ] 20 .split( ' ' )[ 0 ] + 21 'sticky' 22 ); 23 n && advads.close( '#' + n.id ); 24 } ), 25 jQuery( document ).ready( function ( e ) { 26 let t, 27 n = null, 28 s = e( window ).width(); 29 function o() { 30 n && clearTimeout( n ), 31 ( n = setTimeout( function () { 32 const n = e( window ).width(); 33 s !== n && 34 ( ( s = n ), 35 'undefined' != typeof advanced_ads_sticky_items && 36 e.each( 37 advanced_ads_sticky_items, 38 function ( n, s ) { 39 ( t = e( '#' + n ) ), 40 t.prop( 'style', s.initial_css ), 41 s.modifying_func(); 42 } 43 ) ); 44 }, 1e3 ) ); 45 } 46 if ( 47 ( ( 'undefined' != typeof advanced_ads_responsive && 48 parseInt( advanced_ads_responsive.reload_on_resize, 10 ) ) || 49 jQuery( window ).on( 'resize', o ), 50 'undefined' == typeof advanced_ads_sticky_settings || 51 ! advanced_ads_sticky_settings.check_position_fixed ) 52 ) 53 return; 54 let i = ''; 55 const c = e( document.body ).is( '.admin-bar' ) 56 ? e( '#wpadminbar' ).height() 57 : 0; 58 function d( t ) { 59 ! 1 === i && 60 ( e( window ).off( 'resize', o ), 61 ( t = 62 t || 63 jQuery( '.' + advanced_ads_sticky_settings.sticky_class ) ), 64 setTimeout( function () { 65 t.each( function ( t, n ) { 66 const s = e( n ); 67 window.advanced_ads_sticky_items[ s.attr( 'id' ) ] 68 .can_convert_to_abs 69 ? s.css( 'position', 'absolute' ) 70 : s 71 .css( 'position', '' ) 72 .css( 'top', '' ) 73 .css( 'right', '' ) 74 .css( 'bottom', '' ) 75 .css( 'left', '' ) 76 .css( 'margin-left', '' ) 77 .css( 'transform', 'none' ) 78 .css( '-webkit-transform', 'none' ) 79 .css( '-moz-transform', 'none' ) 80 .css( '-ms-transform', 'none' ); 81 } ); 82 } ) ); 83 } 84 navigator.userAgent.indexOf( 'Opera Mini' ) > -1 85 ? ( ( i = ! 1 ), d() ) 86 : e( window ).scroll( function t() { 87 clearTimeout( e.data( this, 'scrollTimer' ) ), 88 e.data( 89 this, 90 'scrollTimer', 91 setTimeout( function () { 92 e( document ).scrollTop() <= c || 93 ( '' === i && 94 ( ( i = ( function () { 95 const e = document.body; 96 if ( 97 document.createElement && 98 e && 99 e.appendChild && 100 e.removeChild 101 ) { 102 const t = 103 document.createElement( 104 'div' 105 ); 106 if ( ! t.getBoundingClientRect ) 107 return null; 108 ( t.innerHTML = 'x' ), 109 ( t.style.cssText = 110 'position:fixed;top:100px;' ), 111 e.appendChild( t ); 112 const n = e.style.height, 113 s = e.scrollTop; 114 let o = parseInt( 115 document.documentElement.getBoundingClientRect() 116 .top, 117 10 118 ); 119 ( o = o > 0 ? o : 0 ), 120 ( e.style.height = 121 '3000px' ), 122 ( e.scrollTop = 500 ); 123 const i = parseInt( 124 t.getBoundingClientRect() 125 .top, 126 10 127 ); 128 e.style.height = n; 129 const c = i - o === 100; 130 return ( 131 e.removeChild( t ), 132 ( e.scrollTop = s ), 133 c 134 ); 135 } 136 return null; 137 } )() ), 138 clearTimeout( 139 e.data( this, 'scrollTimer' ) 140 ), 141 e( window ).off( 'scroll', t ) ), 142 d() ); 143 }, 100 ) 144 ); 145 } ), 146 'object' == typeof advanced_ads_pro && 147 null !== advanced_ads_pro &&
148 advanced_ads_pro.postscribeObservers.add( function ( e ) { 149 if ( 'postscribe_done' === e.event && e.ref && e.ad ) { 150 const t = jQuery( e.ref ).children( 151 '.' + advanced_ads_sticky_settings.sticky_class 152 ); 153 t.length && d( t ); 154 } 155 } ); 156 } );
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.