1/** 2 * Elementor live preview handler 3 * 4 */ 5 jQuery(document).ready(function($) { 6 if( window.elementorFrontend ) { 7 if( typeof( elementorFrontend.hooks ) != 'undefined' ) { 8 /** 9 * Masonry elementor preview 10 * 11 */ 12 elementorFrontend.hooks.addAction( 'frontend/element_ready/cv-masonry-blog-post-layout.default', function( $scope, $ ) { 13 var masonryContainer = $scope.find( '.cv-masonry-post-layout' ); 14 if( masonryContainer.length !== 0 ) { 15 masonryContainer.each( function() { 16 var container = $(this).find( '.cv-post-wrapper' ); 17 if( container.length ) { 18 container.imagesLoaded( function() { 19 container.masonry({ 20 itemSelector: 'article', 21 percentPosition: true 22 }); 23 }); 24 } 25 }); 26 } 27 }); 28 } 29 } 30});
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.