PageSourceSearch

https://www.meridiankiosks.com/wp-content/themes/scalia/js/blog.js?ver=6.6.9

js meridiankiosks.com collected 2026-10-02 18:22:06 UTC 3,615 bytes, 97 lines download raw bytes

1(function($) {
2    $(function() {
3        $('.blog-style-masonry').each(function() {
4            var $blog = $(this);
5            $blog.imagesLoaded( function() {
6                $blog.prev('.preloader').remove();
7                $blog.isotope({
8                    itemSelector: 'article',
9                    layoutMode: 'masonry',
10                    masonry: {
11                        columnWidth: 'article:not(.sticky)'
12                    }
13                });
14                
15                if (!$('body').hasClass('lazy-disabled')) {
16                    var elems = $blog.isotope('getItemElements');
17                    var items = [];
18                    for (var i = 0; i < elems.length; i++)
19                        items.push($blog.isotope('getItem', elems[i]));
20                    $blog.isotope('reveal', items);
21                }
22
23            });
24					$(document).on('show.vc.tab', '[data-vc-tabs]', function() {
25						var $tab = $(this).data('vc.tabs').getTarget();
26						if($tab.find($blog).length) {
27							$blog.isotope('layout');
28						}
29					});
30        });
31
32        $('.blog:not(body)').each(function() {
33            var $blog = $(this);
34
35            $('.blog-load-more', $blog.parent()).on('click', function() {
36                blog_load_core_request($blog);
37            });
38        });
39    });
40
41    function blog_load_core_request($blog) {
42        var data = blog_ajax;
43        
44        var is_processing_request = $blog.data('request-process') || false;
45        if (is_processing_request)
46            return false;
47        $blog.data('request-process', true);
48
49        data['action'] = 'blog_load_more';
50        data['data']['paged'] = $blog.data('next-page') || 2;
51
52        $('.blog-load-more .sc-button', $blog.parent()).before('<div class="loading"></div>');
53
54        $.ajax({
55            type: 'post',
56            dataType: 'json',
57            url: blog_ajax.url,
58            data: data,
59            success: function(response) {
60                if (response.status == 'success') {
61                    var $newItems = $(response.html);
62                    var current_page = $newItems.data('page');
63                    var next_page = $newItems.data('next-page');
64
65                    if ($blog.hasClass('blog-style-masonry')) {
66                        var $inserted_data = $($newItems.html());
67                        $inserted_data.imagesLoaded(function() {
68                            $blog.isotope('insert', $inserted_data);
69                            $('.blog-load-more .loading', $blog.parent()).remove();
70
71                            $blog.data('next-page', next_page);
72                            if (next_page > 0) {
73                                $('.blog-load-more', $blog.parent()).show();
74                            } else {
75                                $('.blog-load-more', $blog.parent()).hide();
76                            }
77                        });
78                    }
79                    else {
80                        $blog.append($newItems.html());
81                        $('.blog-load-more .loading', $blog.parent()).remove();
82                        $blog.data('next-page', next_page);
83                        if (next_page > 0) {
84                            $('.blog-load-more', $blog.parent()).show();
85                        } else {
86                            $('.blog-load-more', $blog.parent()).hide();
87                        }
88                    }
89                    $blog.data('request-process', false);
90                } else {
91                    alert(response.message);
92                }
93            }
94        });
95    }
96
97})(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.