PageSourceSearch

https://malangkota.go.id/wp-content/plugins/theme-core/assets/js/dev/na-core-admin.js

js malangkota.go.id collected 2026-09-24 22:29:41 UTC 3,670 bytes, 93 lines download raw bytes

1(function ($) {
2    "use strict";
3
4    var Na_Admin = {
5        init: function() {
6            this.metabox.tab();
7        },
8        megamenu: {
9            select_image: function() {
10
11            }
12        },
13        metabox: {
14            element: '#postbox-container-2 #normal-sortables',
15            tab: function() {
16            }
17        }
18
19    };
20    function na_infiniteScroll(){
21        var infiniteScroll = {
22            navSelector: '.pagination', // selector for the paged navigation
23            nextSelector: '.pagination .next', // selector for the NEXT link (to page 2)
24            itemSelector: '.na-blog-content .archive-blog > .col-post-item', // selector for all items you'll retrieve
25            contentSelector: '.na-blog-content .archive-blog'
26        };
27        jQuery(infiniteScroll.contentSelector).infinitescroll(
28            infiniteScroll, function (newElements) {
29                //if (jQuery('#loadmore-button').hasClass('load-more')) {
30                //    jQuery('#loadmore-button').fadeIn(400);
31                //}
32                if (jQuery('.na-blog-content .archive-blog').length) {
33                    var container = document.querySelector('.na-blog-content .archive-blog');
34                    var msnry = new Masonry(container);
35                    var $newElems = $(newElements).css('opacity', '0');
36                    $newElems.imagesLoaded(function () {
37                        // show elems now they're ready
38                        $newElems.addClass('new');
39                        msnry.appended($newElems);
40                        msnry.layout();
41                        msnry.on('layoutComplete', function () {
42                            new Masonry(container);
43                        });
44                    });
45                }
46                jQuery("img.lazy").lazyload();
47            }
48        );
49        jQuery(window).unbind('.infscr');
50        if (!$('.pagination .next')[0]) {
51            jQuery('#loadmore-button').html('No More Load');
52        }
53        else {
54            var url = '';
55            jQuery('#loadmore-button').on('click', function (e) {
56                e.preventDefault();
57                if (url == '') {
58                    url = $('.pagination .next').attr('href');
59                }
60                else {
61                    if ($('.inactive[href="' + url + '"]').next('.inactive')[0]) {
62                        url = $('.inactive[href="' + url + '"]').next('.inactive').attr('href');
63                    }
64                    else {
65                        url = window.location.href;
66                    }
67                }
68                if (url != window.location.href) {
69                    jQuery(this).html('Loading... <i class="fa fa-spinner fa-spin"></i>');
70                    jQuery('.na-blog-content .archive-blog').infinitescroll('retrieve');
71                    window.history.pushState({path: url}, '', url);
72                    jQuery(".na-blog-content .archive-blog").bind("DOMSubtreeModified", function () {
73                        if ($('.inactive[href="' + url + '"]').next('.inactive')[0]) {
74                            jQuery('#loadmore-button').html('Load More <i class="fa fa-angle-double-right"></i>');
75                        }
76                        else {
77                            jQuery('#loadmore-button').html('No More Load');
78                        }
79                    });
80                }
81                else {
82                    jQuery('#loadmore-button').html('No More Load');
83                }
84            });
85
86        }
87    }
88    $(document).ready(function() {
89        Na_Admin.init();
90        na_infiniteScroll();
91    });
92
93})(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.