PageSourceSearch

https://vadgam.com/wp-content/themes/polite/assets/js/custom-infinte-pagination.js?ver=4.6.0

js vadgam.com collected 2026-10-01 13:03:32 UTC 2,265 bytes, 63 lines download raw bytes

1/* Custom JS File */
2
3(function($) {
4
5	"use strict";
6
7	jQuery(document).ready(function() {
8    	
9
10    //infinite pagination
11    /*new pagination style*/
12    var paged = parseInt(polite_ajax.paged) + 1;
13    var max_num_pages = parseInt(polite_ajax.max_num_pages);
14    var next_posts = polite_ajax.next_posts;
15
16    $(document).on( 'click', '.show-more', function( event ) {
17      event.preventDefault();
18        var show_more = $(this);
19        var click = show_more.attr('data-click');
20        if( (paged-1) >= max_num_pages){
21            show_more.html(polite_ajax.no_more_posts)
22        }
23        if( click == 0 || (paged-1) >= max_num_pages){
24            return false;
25        }
26        show_more.html('<i class="fa fa-spinner fa-spin fa-fw"></i>');
27        show_more.attr("data-click", 0);
28        var page = parseInt( show_more.attr('data-number') );
29
30        $('#free-temp-post').load(next_posts + ' article.post', function() {
31            /*http://stackoverflow.com/questions/17780515/append-ajax-items-to-masonry-with-infinite-scroll*/
32            paged++;/*next page number*/
33            next_posts = next_posts.replace(/(\/?)page(\/|d=)[0-9]+/, '$1page$2'+ paged);
34            var html = $('#free-temp-post').html();
35            $('#free-temp-post').html('');
36
37            // Make jQuery object from HTML string
38            var $moreBlocks = $( html ).filter('.masonry-post, .one-column, .two-column  ');
39            // Append new blocks to container
40            $('#masonry-loop').append( $moreBlocks ).imagesLoaded(function(){
41                // Have Masonry position new blocks
42                $('#masonry-loop').masonry( 'appended', $moreBlocks );
43            });
44
45            show_more.attr("data-number", page+1);
46            show_more.attr("data-click", 1);
47            show_more.html("<i class='fa fa-refresh'></i>"+polite_ajax.show_more)
48        });
49        return false;
50    });
51    
52    var maxHeight = 0;
53    jQuery('.two-column article.two-column').each(function(){
54        if(jQuery(this).height() > maxHeight) {
55            maxHeight = jQuery(this).height();
56        }
57    });
58    jQuery('.two-column article.two-column').height(maxHeight);
59	//end pagination
60	});
61
62})(jQuery);
63

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.