PageSourceSearch

https://snimy.pl/wp-content/plugins/void-elementor-post-grid-addon…/assets/js/plugin.js?ver=2.4

js snimy.pl collected 2026-10-01 15:39:04 UTC 3,090 bytes, 91 lines download raw bytes

1(function($) {
2    "use strict";
3    
4    $(window).on('load', function() {
5        $('#preloader').fadeOut('slow', function() { $(this).remove(); });
6    });
7    
8    var init = function( $scope, $ ) {
9
10        function shuffle(shuffle) {
11            var cnt = 0;
12            var initialInput = $scope.find('input[name="vepg-shuffle-filter"]:first');
13            var allFilter = $scope.find('input.void-shuffle-all-filter');
14
15            if(allFilter.length == 0){
16                var parent = initialInput.parent();
17                if( parent.hasClass('active') && (cnt <= 0) ){
18                    activeFilter(initialInput);
19                    cnt++;
20                }
21            }
22
23            $scope.find('input[name="vepg-shuffle-filter"]').on('change', function (evt) {
24                activeFilter(evt);
25            });
26            
27            function activeFilter(evt){
28                var input = evt.currentTarget;
29                if(allFilter.length == 0 && cnt == 0){
30                    var input = evt[0];
31                }
32                if (input.checked) {
33                    shuffle.filter(input.value);
34                }
35            }            
36        }
37        // Grid Shuffle Style 1 
38        if ($scope.find('.void-elementor-post-grid-grid-1').length > 0) {
39            var Shuffle = window.Shuffle;
40            var gridShuffle = new Shuffle($scope.find('.void-elementor-post-grid-grid-1'), {
41            itemSelector: '.grid-item',
42            sizer: '.filter-sizer',
43            buffer: 1,
44            });
45
46            shuffle(gridShuffle);
47            
48        }
49        // grid shuffle style 2
50        if ($scope.find('.void-elementor-post-grid-minimal').length > 0) {
51            var Shuffle = window.Shuffle;
52            var gridShuffle2 = new Shuffle($scope.find('.void-elementor-post-grid-minimal'), {
53            itemSelector: '.minimal-grid',
54            sizer: '.filter-sizer',
55            buffer: 1,
56            });
57
58            shuffle(gridShuffle2);
59            
60        }
61
62        // List Shuffle Style 1 
63        if ($scope.find('.void-elementor-post-grid-list-1').length > 0) {
64            var Shuffle = window.Shuffle;
65            var listShuffle = new Shuffle($scope.find('.void-elementor-post-grid-list-1'), {
66            itemSelector: '.list-item',
67            sizer: '.filter-sizer',
68            buffer: 1,
69            });
70
71            shuffle(listShuffle);
72            
73        }
74
75        //Click TO Move Suffle active Filter Button
76        $scope.find('.void-elementor-post-grid-shuffle-btn .btn').on('click', function(){
77            $scope.find('.void-elementor-post-grid-shuffle-btn .btn').removeClass('active');
78            $(this).addClass('active');
79            // alert('Hellp');
80        });
81    };
82
83    // inilialization of js hook on elementor frondend and editor panel
84    $(window).on('elementor/frontend/init', function () {
85
86        // call the initialization function after loading elementor editor
87        elementorFrontend.hooks.addAction( 'frontend/element_ready/void-post-grid.default', init);
88
89    });
90
91}(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.