https://zcctechno.com/wp-content/plugins/designthemes-core-feature…/js/protfolio-custom.js?ver=7.1.2
1jQuery.noConflict(); 2jQuery(document).ready(function($){ 3 4 if( $(".dt-portfolio-single-slider").find("li").length > 1 ) { 5 $(".dt-portfolio-single-slider").bxSlider({ auto:false, video:true, useCSS:false, pagerCustom: '#bx-pager', autoHover:true, adaptiveHeight:true, controls:false, infiniteLoop:false }); 6 } 7 8 var $pphoto = $('a[data-gal^="prettyPhoto[gallery]"]'); 9 if ($pphoto.length) { 10 $pphoto.prettyPhoto({ 11 hook: 'data-gal', 12 show_title: false, 13 deeplinking: false, 14 social_tools: false, 15 default_width: 500, 16 default_height: 344 17 }); 18 } 19 20 21 $(window).on("resize", function() { 22 23 if( $('.dt-sc-portfolio-container').length ) { 24 $('.dt-sc-portfolio-container').css({overflow:'hidden'}).isotope({itemSelector : '.column',masonry: { columnWidth: '.grid-sizer' } }); 25 } 26 27 }); 28 29 $(window).on('load', function(){ 30 31 var portfolioHeight = $('.dt-sc-portfolio-wrapper .portfolio:first').height(); 32 $('.icon-link-title').css('height', portfolioHeight+'px'); 33 34 //Portfolio Template : Sorting 35 var $container = $('.dt-sc-portfolio-container'); 36 if( $container.length) { 37 38 $container.isotope({ 39 filter: '*', 40 masonry: { columnWidth: '.grid-sizer' }, 41 animationOptions: { duration: 750, easing: 'linear', queue: false } 42 }); 43 }//Isotope End 44 45 if($("div.dt-sc-portfolio-sorting").length){ 46 47 $("div.dt-sc-portfolio-sorting a").on('click',function(){ 48 $("div.dt-sc-portfolio-sorting a").removeClass("active-sort"); 49 50 var selector = $(this).attr('data-filter'); 51 $(this).addClass("active-sort"); 52 53 $('.dt-sc-portfolio-container').isotope({ 54 filter: selector, 55 masonry: { columnWidth: '.grid-sizer' }, 56 animationOptions: { duration:750, easing: 'linear', queue: false } 57 }); 58 59 return false; 60 }); 61 } //Portfolio Template : Sorting End 62 63 }); 64 65 66 /* Load More Button */ 67 $('.dt-sc-infinite-portfolio-load-more').each(function(){ 68 69 var $this = $(this), 70 $x = $(this).prev('.dt-sc-infinite-portfolio-container').data('paged'), 71 $xstyle = $(this).data('style'); 72 73 if( $xstyle == 'lazy' ) { 74 $(window).scroll(function(){ 75 if($(window).scrollTop() == $(document).height() - $(window).height()){ 76 77 var $per_page = $this.data('per-page'), 78 $term = $this.data('term'), 79 $style = $this.data('style'), 80 $paged = $x, 81 $prev = $this.prev(); 82 83 $x++; 84 85 $.ajax({
86 type : "post", 87 dataType : "html", 88 url : dttheme_urls.ajaxurl, 89 data : { 90 action: "dt_ajax_infinite_portfolios", 91 per_page : $per_page, 92 term : $term, 93 style: $style, 94 paged: $paged, 95 security: dttheme_urls.Pfnonce // send nonce 96 }, 97 success: function (data) { 98 if (data.length > 0) { 99 $prev.append(data); 100 } else { 101 $prev.find(".message").removeClass("hidden"); 102 setTimeout(function(){ 103 $prev.find(".message").addClass('hidden'); 104 $this.addClass('disable'); 105 }, 5000); 106 } 107 }, 108 error: function (jqXHR, textStatus, errorThrown) { 109 console.log('AJAX Error:', textStatus, errorThrown); 110 } 111 }); 112 113 } 114 }); 115 } else if( $xstyle == 'load-more') { 116 117 $this.on('click', function(e){ 118 119 e.preventDefault(); 120 121 var $per_page = $(this).data('per-page'), 122 $term = $(this).data('term'), 123 $style = $(this).data('style'), 124 $paged = $x, 125 $prev = $(this).prev(); 126 127 $x++; 128 129 $.ajax({
130 type : "post", 131 dataType : "html", 132 url : dttheme_urls.ajaxurl, 133 data : { 134 action: "dt_ajax_infinite_portfolios", 135 per_page : $per_page, 136 term : $term, 137 style: $style, 138 paged: $paged, 139 security: dttheme_urls.Pfnonce // send nonce 140 }, 141 success: function (data) { 142 if (data.length > 0) { 143 $prev.append(data); 144 } else { 145 $prev.find(".message").removeClass("hidden"); 146 setTimeout(function(){ 147 $prev.find(".message").addClass('hidden'); 148 $this.addClass('disable'); 149 }, 5000); 150 } 151 }, 152 error: function (jqXHR, textStatus, errorThrown) { 153 console.log('AJAX Error:', textStatus, errorThrown); 154 } 155 }); 156 157 }); 158 } 159 }); 160 161 162});
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.