1jQuery( 2 function ($) { 3 4 'use strict'; 5 6 /* === Magnific Popup === */ 7 (function () { 8 $( '.sp-pcp-post' ).magnificPopup( 9 { 10 delegate: 'a.sp-pcp-light-box', 11 type: 'image', 12 // other options 13 closeOnContentClick: false, 14 closeBtnInside: false, 15 midClick: false, 16 mainClass: 'mfp-with-zoom mfp-img-mobile', 17 zoom: { 18 enabled: true, 19 duration: 300, // don't forget to change the duration also in CSS 20 opener: function (element) { 21 return element.find( 'img' ); 22 } 23 } 24 } 25 ); 26 }()); 27 28 /* === Masonry === */ 29 30 var $spc_masonry = $( '.sp-post-carousel-pro-masonry' ); 31 var $spc_masonry_grid = $spc_masonry.isotope( 32 { 33 itemSelector: '.sp-pcp-post', 34 masonry: { 35 horizontalOrder: true 36 } 37 } 38 ); 39 $spc_masonry.imagesLoaded( 40 function () { 41 $spc_masonry_grid.isotope( 'layout' ); 42 } 43 ); 44 $( window ).on( 45 'load', function () { 46 $spc_masonry_grid.isotope( 'layout' ); 47 } 48 ); 49 } 50);
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.