PageSourceSearch

https://nestropetrol.com/wp-content/plugins/mwt-addons-for-elementor/assets/js/mwt-gallery-grid.js?ver=7.1.2

js nestropetrol.com collected 2026-10-09 00:26:24 UTC 2,202 bytes, 58 lines download raw bytes

1/**
2 * Start gallery grid widget script
3 */
4
5(function ($) {
6    var WidgetGalleryGrid = function () {
7        var $grids = $(".mwt-gallery-grid .masonry");
8        var filters = $grids.data('filters') ? $grids.data('filters') : false;
9        var order = $grids.data('order') ? $grids.data('order') : false;
10
11        if ($grids.length) {
12            $grids.imagesLoaded().progress(function () {
13                $grids.masonry({
14                    columnWidth: '.grid-sizer',
15                    itemSelector: '.grid-item',
16                    percentPosition: true,
17                    horizontalOrder: order,
18                    originLeft: true
19                });
20                if (filters) {
21                    $(filters).on('click', 'a', function (e) {
22                        var group = $(this).attr('data-filter');
23                        var group_class = "." + group;
24
25                        if (group == "*") {
26                            $(".grid-item").show();
27                            $(this).siblings().removeClass('selected active');
28                            $(this).addClass('selected active');
29                            $('.masonry').masonry('layout');
30                        } else if (group != "") {
31                            $(".grid-item").hide();
32                            $(group_class).show();
33                            $(this).siblings().removeClass('selected active');
34                            $(this).addClass('selected active');
35                            $('.masonry').masonry('layout');
36                        } else {
37                            $(".grid-item").show();
38                            $(this).siblings().removeClass('selected active');
39                            $(this).addClass('selected active');
40                            $('.masonry').masonry('layout');
41                        }
42                    });
43                }
44            });
45        }
46    };
47
48    $(window).on('elementor/frontend/init', function () {
49        elementorFrontend.hooks.addAction(
50            'frontend/element_ready/mwt-gallery-grid.default',
51            WidgetGalleryGrid
52        );
53    });
54})(jQuery);
55
56/**
57 * End gallery grid widget script
58 */

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.