PageSourceSearch

https://leadgenerationsolution.co/wp-content/plugins/daas-plus/mod…/blog/assets/js/post-loadmore.js?ver=1.0.2

js leadgenerationsolution.co collected 2026-10-08 21:28:09 UTC 3,332 bytes, 69 lines download raw bytes

1(function ($) {
2    "use strict";
3	$(document).ready(function () {
4        //Ajax masonry load more items
5        $('.wdt-posts-list-wrapper').each(function(){
6            var $page = 1;
7            var $T = $(this);
8            var $data = "", $content = $T.find('.tpl-blog-holder');
9
10            // When load more button click...
11            $('.wdt-posts-list-wrapper').on( "click", ".loadmore-btn.more-items", function() {
12
13              var $this = $(this);
14              var $count = $this.attr('data-count'), $cats = $this.attr('data-cats'), $style = $this.attr('data-style'),
15              $layout = $this.attr('data-layout'), $column = $this.attr('data-column'), $list_type = $this.attr('data-listtype'),
16              $hover = $this.attr('data-hover'), $overlay = $this.attr('data-overlay'), $align = $this.attr('data-align'),
17              $mpages = $this.attr('data-maxpage'), $pos = $this.attr('data-pos'), $eheight = $this.attr('data-eheight'),
18              $meta = $this.attr('data-meta'), $blogpostloadmore_nonce = $this.attr('data-blogpostloadmore-nonce');
19
20              if( $meta != '' ) {
21                  $meta = JSON.parse( $meta );
22              }
23
24              $content.addClass('loading');
25
26              if( $this.hasClass('more-items') ) {
27                $page++;
28              }
29
30              $.ajax({
31                 type : "post",
32                 dataType : "html",
33                 url : daas_urls.ajaxurl,
34                 data : { action: "blog_archive_load_more_post", count: $count, cats: $cats, pos: $pos, style: $style, layout: $layout, column: $column, pageNumber: $page, listtype: $list_type, hover: $hover, overlay: $overlay, align: $align, meta: $meta, blogpostloadmore_nonce: $blogpostloadmore_nonce },
35                 cache: true,
36                 success: function (data) {
37                    var $res = data.split('#####$$$$$');
38                    if ( $res.length > 0 ) {
39
40                        $content.append($res[0]);
41                        $T.find('.loadmore-btn').attr('data-pos', $res[1]);
42
43                        var newbx = $content.find('ul.entry-gallery-post-slider');
44                        if( newbx !== null ) {
45                            newbx.bxSlider({mode: 'fade', auto:false, video:true, pager:'', autoHover:true, adaptiveHeight:false, responsive: true});
46                        }
47
48                        if( $eheight == null || $eheight == false ) {
49                            $content.css({overflow:'hidden'}).isotope( 'reloadItems' ).isotope();
50                            $(window).trigger( 'resize' );
51                        }
52
53                        if( parseInt( $page ) >= parseInt( $mpages ) ) {
54                            $T.find('.loadmore-btn').removeClass('more-items').html('All Posts Loaded');
55                        } else {
56                            $T.find('.loadmore-btn').addClass('more-items');
57                        }
58                    }
59                    $content.removeClass('loading');
60                 },
61                 error: function (jqXHR, textStatus, errorThrown) {
62                    $content.html('No More Posts Found');
63                 }
64              });
65              return false;
66            });
67        });
68    });
69})(jQuery);

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.