1jQuery(document).ready(function ($) { 2 function penciGetsListData() { 3 jQuery('body').on('click', '.penci-slajax-more-click .penci-ajax-more-button', function (event) { 4 event.preventDefault(); 5 if (!$(this).hasClass('loading-posts')) { 6 var $this = $(this), 7 wrapId = $this.data('id'), 8 parentclass = $(this).closest('.pcnav-lgroup'), 9 wrapper = $(this).closest('.penci-smalllist').find('.pcsl-inner'), 10 tag = $this.data('tag'), 11 cat = $this.data('cat'), 12 ppp = parentclass.data('ppp'), 13 maxitem = $this.data('max'), 14 author = $this.data('author'), 15 mes = $this.data('mes'), 16 type = $this.data('query_type'), 17 pagednum = parseInt($this.attr('data-pagednum')), 18 archivetype = $this.data('archivetype'), 19 archivevalue = $this.data('archivevalue'), 20 curpaged = pagednum; 21 22 var OBjBlockData = penciGetOBjBlockData($this.data('blockid')), 23 dataFilter = OBjBlockData.atts_json ? JSON.parse(OBjBlockData.atts_json) : OBjBlockData.atts_json; 24 25 $this.addClass('loading-posts'); 26 27 var data = { 28 action: 'penci_more_slist_post_ajax', 29 datafilter: dataFilter, 30 id: wrapId, 31 tag: tag, 32 cat: cat, 33 type: type, 34 author: author, 35 pagednum: pagednum, 36 checkmore: true, 37 archivetype: archivetype, 38 archivevalue: archivevalue, 39 nonce: penci_slajax.nonce, 40 }; 41 42 $.ajax({ 43 type: "POST", 44 dataType: "html", 45 url: ajax_var_more.url, 46 data: data, 47 success: function (data) { 48 if (data) { 49 50 var data_paded = curpaged; 51 52 if (data_paded <= 1) { 53 parentclass.find('.pc-ajaxfil-link.prev').addClass('disable'); 54 } else { 55 parentclass.find('.pc-ajaxfil-link.prev').removeClass('disable'); 56 } 57 58 if (data_paded * ppp >= maxitem) { 59 parentclass.find('.pc-ajaxfil-link.next').addClass('disable'); 60 } else { 61 parentclass.find('.pc-ajaxfil-link.next').removeClass('disable'); 62 } 63 64 $this.attr('data-pagednum', curpaged + 1); 65 66 wrapper.append(data); 67 68 $(".penci-wrapper-smalllist").fitVids(); 69 70 $('body').trigger( 'penci_swiper_sliders' ); 71 72 if ($().easyPieChart) { 73 $('.penci-piechart').each(function () { 74 var $this = $(this); 75 $this.one('inview', function (event, isInView, visiblePartX, visiblePartY) { 76 var chart_args = { 77 barColor: $this.data('color'), 78 trackColor: $this.data('trackcolor'), 79 scaleColor: false, 80 lineWidth: $this.data('thickness'), 81 size: $this.data('size'), 82 animate: 1000 83 }; 84 $this.easyPieChart(chart_args); 85 }); // bind inview 86 }); // each 87 } 88 89 var $justified_gallery = $('.penci-post-gallery-container.justified'); 90 var $masonry_gallery = $('.penci-post-gallery-container.masonry'); 91 if ($().justifiedGallery && $justified_gallery.length) { 92 $('.penci-post-gallery-container.justified').each(function () { 93 var $this = $(this); 94 $this.justifiedGallery({ 95 rowHeight: $this.data('height'), 96 lastRow: 'nojustify', 97 margins: $this.data('margin'), 98 randomize: false 99 }); 100 }); // each .penci-post-gallery-container 101 } 102 103 if ($().isotope && $masonry_gallery.length) { 104 105 $('.penci-post-gallery-container.masonry .item-gallery-masonry').each(function () { 106 var $this = $(this); 107 if ($this.attr('title')) { 108 var $title = $this.attr('title'); 109 $this.children().append('<div class="caption">' + $title + '</div>'); 110 } 111 }); 112 } 113 114 if ($masonry_gallery.length) { 115 $masonry_gallery.each(function () { 116 var $this = $(this); 117 $this.imagesLoaded(function () { 118 // initialize isotope 119 $this.isotope({ 120 itemSelector: '.item-gallery-masonry', 121 transitionDuration: '.55s', 122 layoutMode: 'masonry' 123 }); 124 125 $this.addClass('loaded'); 126 127 $('.penci-post-gallery-container.masonry .item-gallery-masonry').each(function () { 128 var $this = $(this); 129 $this.one('inview', function (event, isInView, visiblePartX, visiblePartY) { 130 $this.addClass('animated'); 131 }); // inview 132 }); // each 133 }); 134 }); 135 } 136 137 if ($().theiaStickySidebar) { 138 var top_margin = 90; 139 if ($('body').hasClass('admin-bar')) { 140 top_margin = 122; 141 } 142 $('#main.penci-main-sticky-sidebar, #sidebar.penci-sticky-sidebar').theiaStickySidebar({ 143 // settings 144 additionalMarginTop: top_margin 145 }); 146 } // if sticky 147 $this.removeClass('loading-posts'); 148 $(document).trigger('penci_bf_check'); 149 } else { 150 $this.find(".ajax-more-text").text(mes); 151 $this.find("i").remove(); 152 $this.removeClass('loading-posts'); 153 setTimeout(function () { 154 $this.parent().remove(); 155 }, 1200); 156 } 157 } 158 }); 159 } 160 }); 161 } 162 163 function penciGetOBjBlockData($blockID) { 164 var $obj = new penciBlock(); 165 166 jQuery.each(penciBlocksArray, function (index, block) { 167 168 if (block.blockID === $blockID) { 169 $obj = penciBlocksArray[index]; 170 } 171 }); 172 173 return $obj; 174 } 175 176 penciGetsListData(); 177 178 $('body').on('penci-small-list-loaded', function () { 179 penciGetsListData(); 180 }); 181});
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.