PageSourceSearch

https://ccajerez.com/wp-content/themes/classiera/js/infinitescroll.js?ver=7.1.3

js ccajerez.com collected 2026-10-10 00:28:02 UTC 9,871 bytes, 173 lines download raw bytes

1jQuery(window).on('load', function() {
2    "use strict";
3    //Blog 
4    jQuery('#all').each(function(i){
5        var $currentPortfolio = jQuery(this);
6        var $currentInfinite = $currentPortfolio.find('.jw-infinite-scroll');
7        var $currentIsotopeContainer = $currentPortfolio.children('.container').children('.row');
8        $currentIsotopeContainer=$currentIsotopeContainer?$currentIsotopeContainer:$currentPortfolio;
9        // Infinite
10        $currentInfinite.find('a').unbind('click').bind('click',function(e){e.preventDefault();
11            var $currentNextLink = jQuery(this);
12            if($currentInfinite.attr('data-has-next')==='true'&&$currentNextLink.hasClass('next')){
13                var $infiniteURL = $currentNextLink.attr('href');
14                $currentInfinite.find('.next').hide();
15                $currentInfinite.find('.loading').show();
16                jQuery.ajax({
17                    type: "POST",
18                    url: $infiniteURL,
19                    success: function(response){
20						//alert(response);
21                        var $newElements = jQuery(response).find('#all').children('.container').children('.row').hasClass('row')?jQuery(response).find('#all').children('.container').children('.row').html():jQuery(response).find('#all').eq(i).html();
22                        var $newURL      = jQuery(response).find('#all').find('.jw-infinite-scroll>a.next').attr('href');
23                        var $hasNext     = jQuery(response).find('#all').find('.jw-infinite-scroll').attr('data-has-next');
24                        jQuery(".classiera-advertisement .item.item-list .classiera-box-div figure figcaption h5 a").textlimit(30);
25						if($newElements){
26                            jQuery(".classiera-advertisement .classiera-box-div h5 > a").textlimit(30);
27                            if($currentIsotopeContainer.hasClass('row')){
28                                $currentIsotopeContainer.append($newElements);
29								jQuery('.match-height').matchHeight();
30                            }else{
31                                $currentInfinite.before($newElements);
32                            }
33                            if($hasNext==='false'){
34                                $currentInfinite.attr('data-has-next','false');
35                                $currentInfinite.find('.loading').hide();
36                                $currentInfinite.find('.no-more').show();
37                            }else{
38                                $currentNextLink.attr('href',$newURL);
39                                $currentInfinite.find('.loading').hide();
40                                $currentInfinite.find('.next').fadeIn();
41                            }
42                        }else{
43                            $currentInfinite.attr('data-has-next','false');
44                            $currentInfinite.find('.loading').hide();
45                            $currentInfinite.find('.no-more') .show();
46                        }
47                        setTimeout(function(){
48                            $currentIsotopeContainer.children('.ad-box').css('opacity','1');
49                            
50                        },1000);
51                        setTimeout(function(){
52                            $currentIsotopeContainer.children('.ad-box').css('opacity','1');
53                            
54                        },6000);
55                    }
56                });
57            }
58        });
59    });
60	
61	
62	
63	
64	    //Blog 
65    jQuery('#panel2').each(function(i){
66        var $currentPortfolio=jQuery(this);
67        var $currentInfinite=$currentPortfolio.find('.jw-infinite-scroll');
68        var $currentIsotopeContainer=$currentPortfolio.children('.loop-content2');
69        $currentIsotopeContainer=$currentIsotopeContainer?$currentIsotopeContainer:$currentPortfolio;
70        // Infinite
71        $currentInfinite.find('a').unbind('click').bind('click',function(e){e.preventDefault();
72            var $currentNextLink=jQuery(this);
73            if($currentInfinite.attr('data-has-next')==='true'&&$currentNextLink.hasClass('next')){
74                var $infiniteURL=$currentNextLink.attr('href');
75                $currentInfinite.find('.next').hide();
76                $currentInfinite.find('.loading').show();
77                jQuery.ajax({
78                    type: "POST",
79                    url: $infiniteURL,
80                    success: function(response){
81                        var $newElements = jQuery(response).find('#panel2').children('.loop-content2').hasClass('loop-content2')?
81jQuery(response).find('#panel2').children('.loop-content2').html():jQuery(response).find('#panel2').eq(i).html();
82                        var $newURL      = jQuery(response).find('#panel2').find('.jw-infinite-scroll>a.next').attr('href');
83                        var $hasNext     = jQuery(response).find('#panel2').find('.jw-infinite-scroll').attr('data-has-next');
84						if($newElements){
85                            if($currentIsotopeContainer.hasClass('loop-content2')){
86                                $currentIsotopeContainer.append($newElements);
87								jQuery('.match-height').matchHeight();
88                            }else{
89                                $currentInfinite.before($newElements);
90                            }
91                            if($hasNext==='false'){
92                                $currentInfinite.attr('data-has-next','false');
93                                $currentInfinite.find('.loading').hide();
94                                $currentInfinite.find('.no-more').show();
95                            }else{
96                                $currentNextLink.attr('href',$newURL);
97                                $currentInfinite.find('.loading').hide();
98                                $currentInfinite.find('.next').fadeIn();
99                            }
100                        }else{
101                            $currentInfinite.attr('data-has-next','false');
102                            $currentInfinite.find('.loading').hide();
103                            $currentInfinite.find('.no-more') .show();
104                        }
105                        setTimeout(function(){
106                            $currentIsotopeContainer.children('.ad-box').css('opacity','1');
107                            
108                        },1000);
109                        setTimeout(function(){
110                            $currentIsotopeContainer.children('.ad-box').css('opacity','1');
111                            
112                        },6000);
113                    }
114                });
115            }
116        });
117    });
118	
119	
120	   //Blog 
121    jQuery('#panel3').each(function(i){
122        var $currentPortfolio=jQuery(this);
123        var $currentInfinite=$currentPortfolio.find('.jw-infinite-scroll');
124        var $currentIsotopeContainer=$currentPortfolio.children('.loop-content3');
125        $currentIsotopeContainer=$currentIsotopeContainer?$currentIsotopeContainer:$currentPortfolio;
126        // Infinite
127        $currentInfinite.find('a').unbind('click').bind('click',function(e){e.preventDefault();
128            var $currentNextLink=jQuery(this);
129            if($currentInfinite.attr('data-has-next')==='true'&&$currentNextLink.hasClass('next')){
130                var $infiniteURL=$currentNextLink.attr('href');
131                $currentInfinite.find('.next').hide();
132                $currentInfinite.find('.loading').show();
133                jQuery.ajax({
134                    type: "POST",
135                    url: $infiniteURL,
136                    success: function(response){
137                        var $newElements = jQuery(response).find('#panel3').children('.loop-content3').hasClass('loop-content3')?jQuery(response).find('#panel3').children('.loop-content3').html():jQuery(response).find('#panel3').eq(i).html();
138                        var $newURL      = jQuery(response).find('#panel3').find('.jw-infinite-scroll>a.next').attr('href');
139                        var $hasNext     = jQuery(response).find('#panel3').find('.jw-infinite-scroll').attr('data-has-next');
140						if($newElements){
141                            if($currentIsotopeContainer.hasClass('loop-content3')){
142                                $currentIsotopeContainer.append($newElements);								
143                            }else{
144                                $currentInfinite.before($newElements);
145                            }
146                            if($hasNext==='false'){
147                                $currentInfinite.attr('data-has-next','false');
148                                $currentInfinite.find('.loading').hide();
149                                $currentInfinite.find('.no-more').show();
150                            }else{
151                                $currentNextLink.attr('href',$newURL);
152                                $currentInfinite.find('.loading').hide();
153                                $currentInfinite.find('.next').fadeIn();
154                            }
155                        }else{
156                            $currentInfinite.attr('data-has-next','false');
157                            $currentInfinite.find('.loading').hide();
158                            $currentInfinite.find('.no-more') .show();
159                        }
160                        setTimeout(function(){
161                            $currentIsotopeContainer.children('.ad-box').css('opacity','1');
162                            
163                        },1000);
164                        setTimeout(function(){
165                            $currentIsotopeContainer.children('.ad-box').css('opacity','1');
166                            
167                        },6000);
168                    }
169                });
170            }
171        });
172    });
vendor: 3 bytes, line 173
173});

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.