PageSourceSearch

https://jarvenpaantaideseura.fi/wp-content/themes/avant/js/layout-blocks.js?ver=11.0.1

js jarvenpaantaideseura.fi collected 2026-10-02 22:33:39 UTC 899 bytes, 29 lines download raw bytes

1/**
2 * Custom Blocks Functionality
3 *
4 */
5( function( $ ) {
6    
7    $(window).on('load',function () {
8        
9        // Initialize the Masonry plugin
10        var grid = $( '.blog-blocks-wrap-inner' ).masonry({
11            columnWidth: 'article.blog-blocks-layout',
12            itemSelector: 'article.blog-blocks-layout',
13            percentPosition: true
14        });
15
16        // Once all images within the grid have loaded lay out the grid
17        $( '.blog-blocks-wrap-inner' ).imagesLoaded( function() {
18            grid.masonry('layout');
19        });
20
21        // Once the layout is complete hide the loader. Triggering the window resize event fixes a small spacing issue on the grid 
22        grid.one( 'layoutComplete', function() {
23            $( '.blog-blocks-wrap' ).removeClass( 'blog-blocks-wrap-remove' );
24            $(window).resize();
25        } );
26        
27    });
28    
29} )( 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.