1 2( function( $ ) { 3 4 // Document Ready functions 5 $( function() { 6 7 $('.os-lightbox-activator').magnificPopup({ 8 type: 'image', 9 mainClass: 'mfp-with-zoom', // this class is for CSS animation below 10 11 zoom: { 12 enabled: true, // By default it's false, so don't forget to enable it 13 14 duration: 300, // duration of the effect, in milliseconds 15 easing: 'ease-in-out', // CSS transition easing function 16 17 // The "opener" function should return the element from which popup will be zoomed in 18 // and to which popup will be scaled down 19 // By defailt it looks for an image tag: 20 opener: function(openerElement) { 21 // openerElement is the element on which popup was initialized, in this case its <a> tag 22 // you don't need to add "opener" option if this code matches your needs, it's defailt one. 23 return openerElement.is('img') ? openerElement : openerElement.find('img'); 24 } 25 } 26 27 }); 28 29 } ); 30} )( 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.