1jQuery( document ).ready( function( $ ) { 2 // Init Masonry 3 $( '.kb-masonry-init' ).each( function() { 4 var itemSelector = $( this ).attr( 'data-item-selector' ); 5 var masRtl = true; 6 if ( $( 'html[dir="rtl"]' ).length ) { 7 masRtl = false; 8 } 9 var masGrid = $( this ).masonry( { 10 itemSelector: itemSelector, 11 isOriginLeft: masRtl, 12 } ); 13 $( this ).find( itemSelector ).each( function( i ) { 14 var item = $( this ); 15 setTimeout( function( ) { 16 item.addClass( 'kt-masonry-trigger-animation' ); 17 }, i * 75 ); 18 } ); 19 masGrid.imagesLoaded().progress( function() { 20 masGrid.masonry( 'layout' ); 21 } ); 22 } ); 23} );
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.