PageSourceSearch

https://www.durlem.be/wp-content/plugins/portfolio-elementor/assets/js/pwrgrids-custom-js.js?ver=20151215

js durlem.be collected 2026-09-24 11:51:28 UTC 2,058 bytes, 58 lines download raw bytes

1jQuery(window).on('load', function () {
2    if ( jQuery( ".pwgd-post-grid-content" ).length ) {
3
4        //Isotope Layout
5        var $grid = jQuery('.pwgd-grid-content-isotope').isotope({
6            //layoutMode: 'packery',
7            layoutMode: 'masonry',
8            itemSelector: '.pwgd-post-grid-item-wrapper'
9        });
10        $grid.imagesLoaded().progress( function() {
11            jQuery('.pwgd-grid-content-equalheights').each(function(){          
12                // Cache the highest
13                var highestBox = 0;
14                
15                // Select and loop the elements you want to equalise
16                jQuery('.pwgd-post-grid-item-wrapper', this).each(function(){
17                
18                    // If this box is higher than the cached highest then store it
19                    if(jQuery(this).height() > highestBox) {
20                        highestBox = jQuery(this).height(); 
21                    }
22                
23                });  
24                    
25                // Set the height of all those children to whichever was highest 
26                jQuery('.pwgd-post-grid-item-wrapper',this).height(highestBox);
27                            
28            }); 
29            
30            $grid.isotope('layout');
31
32            
33        });
34
35        //Packery Layout
36        /*var $packery = jQuery('.pwgd-grid-content-packery').isotope({
37            layoutMode: 'packery',            
38            itemSelector: '.grid-item-wrapper'
39        });
40        $packery.imagesLoaded().progress( function() {
41            $packery.isotope('layout');
42        });*/
43
44        jQuery('.pwgd-posts-filter').on('click', 'button', function () {   
45            jQuery('.pwgd-posts-filter button').removeClass('item-active');
46            jQuery(this).addClass('item-active');
47            var filterValue = jQuery(this).attr('data-filter');
48            $grid.isotope({
49                filter: filterValue
50            });
51            /*$packery.isotope({
52                filter: filterValue
53            });*/
54        });
55
56    }
57
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.