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/* global penciBlock */ 11/* global penciBlocksArray */ 12jQuery( document ).ready( function ( $ ) { 13 var offset; 14 jQuery( 'body' ).on( 'click', '.penci-ajax-more-click .penci-ajax-more-button', function ( event ) { 15 if ( !$( this ).hasClass( 'loading-posts' ) ) { 16 var $this = $( this ), 17 layout = $this.data( 'layout' ), 18 ppp = $this.data( 'number' ), 19 mes = $this.data( 'mes' ), 20 offset = $( this ).attr( 'data-offset' ), 21 exclude = $this.data( 'exclude' ), 22 from = $this.data( 'from' ), 23 comeFrom = $this.data( 'come_from' ), 24 mixed = $this.data( 'mixed' ), 25 query = $this.data( 'query' ), 26 number = $this.data( 'number' ), 27 template = $this.data( 'template' ); 28 29 $this.addClass( 'loading-posts' ); 30 31 var OBjBlockData = penciGetOBjBlockData( $this.attr( 'data-blockuid' ) ), 32 dataFilter = OBjBlockData.atts_json ? JSON.parse( OBjBlockData.atts_json ) : OBjBlockData.atts_json; 33 34 var data = { 35 action: 'penci_more_post_ajax', 36 query: query, 37 offset: offset, 38 mixed: mixed, 39 layout: layout, 40 exclude: exclude, 41 from: from, 42 comefrom: comeFrom, 43 datafilter: dataFilter, 44 template: template, 45 ppp: ppp, 46 number: number, 47 nonce: ajax_var_more.nonce, 48 }; 49 50 51 $.ajax( { 52 type : "POST", 53 dataType: "html", 54 url : ajax_var_more.url, 55 data : data, 56 success : function ( data ) { 57 if ( data ) { 58 var data_offset = parseInt( offset ) + ppp, 59 $wrap_content = $this.parent().parent().find('.penci-wrapper-data'); 60 61 $this.attr( 'data-offset', data_offset ); 62 if ( layout === 'masonry' || layout === 'masonry-2' ) { 63 var $data = $( data ); 64 $wrap_content.append( $data ).isotope( 'appended', $data ).imagesLoaded( function () { 65 $wrap_content.isotope( 'layout' ); 66 } ); 67 68 $( ".container" ).fitVids(); 69 70 $('.penci-wrapper-data .penci-owl-carousel-slider').each(function () { 71 var $this = $(this), 72 $rtl = false; 73 if( $('html').attr('dir') === 'rtl' ) { 74 $rtl = true; 75 } 76 var owl_args = { 77 rtl : $rtl, 78 loop : true, 79 margin : 0, 80 items : 1, 81 navSpeed : 600, 82 lazyLoad : true, 83 dotsSpeed : 600, 84 nav : true, 85 dots : false, 86 navText : ['<i class="fa fa-angle-left"></i>', '<i class="fa fa-angle-right"></i>'], 87 autoplay : true, 88 autoplayTimeout : 5000, 89 autoHeight : true, 90 autoplayHoverPause: true, 91 autoplaySpeed : 600 92 }; 93 94 $this.owlCarousel(owl_args); 95 }); 96 97 if( $().easyPieChart ) { 98 $( '.penci-piechart' ).each( function () { 99 var $this = $( this ); 100 $this.one( 'inview', function ( event, isInView, visiblePartX, visiblePartY ) { 101 var chart_args = { 102 barColor : $this.data( 'color' ), 103 trackColor: $this.data( 'trackcolor' ), 104 scaleColor: false, 105 lineWidth : $this.data( 'thickness' ), 106 size : $this.data( 'size' ), 107 animate : 1000 108 }; 109 $this.easyPieChart( chart_args ); 110 } ); // bind inview 111 } ); // each 112 } 113 114 $('.penci-lazy').Lazy({ 115 effect: 'fadeIn', 116 effectTime: 300, 117 scrollDirection: 'both' 118 }); 119 120 } else { 121 var $data = $( data ); 122 $wrap_content.append( $data ); 123 124 $('.penci-lazy').Lazy({ 125 effect: 'fadeIn', 126 effectTime: 300, 127 scrollDirection: 'both' 128 }); 129 130 $( ".container" ).fitVids(); 131 132 $('.penci-wrapper-data .penci-owl-carousel-slider').each(function () { 133 var $this = $(this), 134 $datalazy = false, 135 $rtl = false;
136 137 if( $('html').attr('dir') === 'rtl' ) { 138 $rtl = true; 139 } 140 if ( $this.attr('data-lazy') ) { 141 $datalazy = true; 142 } 143 var owl_args = { 144 rtl : $rtl, 145 loop : true, 146 margin : 0, 147 items : 1, 148 navSpeed : 600, 149 dotsSpeed : 600, 150 lazyLoad : $datalazy, 151 nav : true, 152 dots : false, 153 navText : ['<i class="fa fa-angle-left"></i>', '<i class="fa fa-angle-right"></i>'], 154 autoplay : true, 155 autoplayTimeout : 5000, 156 autoHeight : true, 157 autoplayHoverPause: true, 158 autoplaySpeed : 600 159 }; 160 161 $this.imagesLoaded(function () { 162 $this.owlCarousel(owl_args); 163 }); 164 165 $this.on('changed.owl.carousel', function(event) { 166 $('.penci-lazy').Lazy({ 167 effect: 'fadeIn', 168 effectTime: 300, 169 scrollDirection: 'both' 170 }); 171 }); 172 }); 173 174 if( $().easyPieChart ) { 175 $( '.penci-piechart' ).each( function () { 176 var $this = $( this ); 177 $this.one( 'inview', function ( event, isInView, visiblePartX, visiblePartY ) { 178 var chart_args = { 179 barColor : $this.data( 'color' ), 180 trackColor: $this.data( 'trackcolor' ), 181 scaleColor: false, 182 lineWidth : $this.data( 'thickness' ), 183 size : $this.data( 'size' ), 184 animate : 1000 185 }; 186 $this.easyPieChart( chart_args ); 187 } ); // bind inview 188 } ); // each 189 } 190 191 var $justified_gallery = $( '.penci-post-gallery-container.justified' ); 192 var $masonry_gallery = $( '.penci-post-gallery-container.masonry' ); 193 if ( $().justifiedGallery && $justified_gallery.length ) { 194 $( '.penci-post-gallery-container.justified' ).each( function () { 195 var $this = $( this ); 196 $this.justifiedGallery( { 197 rowHeight: $this.data( 'height' ), 198 lastRow : 'nojustify', 199 margins : $this.data( 'margin' ), 200 randomize: false 201 } ); 202 } ); // each .penci-post-gallery-container 203 } 204 205 if ( $().isotope && $masonry_gallery.length ) { 206 207 $('.penci-post-gallery-container.masonry .item-gallery-masonry').each(function () { 208 var $this = $(this); 209 if ($this.attr('title')) { 210 var $title = $this.attr('title'); 211 $this.children().append('<div class="caption">' + $title + '</div>'); 212 } 213 }); 214 } 215 216 $(window).load(function() { 217 if ( $masonry_gallery.length ) { 218 $masonry_gallery.each( function () { 219 var $this = $( this ); 220 // initialize isotope 221 $this.isotope( { 222 itemSelector : '.item-gallery-masonry', 223 transitionDuration: '.55s', 224 layoutMode : 'masonry' 225 } ); 226 227 $this.addClass( 'loaded' ); 228 229 $('.penci-post-gallery-container.masonry .item-gallery-masonry').each( function () { 230 var $this = $( this ); 231 $this.one( 'inview', function ( event, isInView, visiblePartX, visiblePartY ) { 232 $this.addClass( 'animated' ); 233 } ); // inview 234 } ); // each 235 236 } ); 237 } 238 }); 239 240 if ( $().theiaStickySidebar ) { 241 var top_margin = 90; 242 if( $('body' ).hasClass('admin-bar') ) { 243 top_margin = 122; 244 } 245 $('#main.penci-main-sticky-sidebar, #sidebar.penci-sticky-sidebar' ).theiaStickySidebar({ 246 // settings 247 additionalMarginTop: top_margin 248 }); 249 } // if sticky 250 } 251 252 $this.removeClass( 'loading-posts' ); 253 254 } else { 255 $( ".penci-ajax-more-button .ajax-more-text" ).text( mes ); 256 $( ".penci-ajax-more-button i" ).remove(); 257 $this.removeClass( 'loading-posts' ); 258 setTimeout(function(){ 259 $this.parent().remove(); 260 }, 1200); 261 } 262 }, 263 error : function ( jqXHR, textStatus, errorThrown ) { 264 $loader.html( jqXHR + " :: " + textStatus + " :: " + errorThrown ); 265 } 266 267 } ); 268 } 269 } ); 270 271 function penciGetOBjBlockData( $blockID ) { 272 var $obj = new penciBlock(); 273 274 jQuery.each( penciBlocksArray, function ( index, block ) { 275 276 if ( block.blockID === $blockID ) { 277 $obj = penciBlocksArray[index]; 278 } 279 } ); 280 281 return $obj; 282 }; 283} ); 284}
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.