1jQuery(document).ready(function($){ 2 3 $('.image-popup').magnificPopup({ 4 type: 'image', 5 closeOnContentClick: true, 6 closeBtnInside: false, 7 fixedContentPos: true, 8 mainClass: 'mfp-no-margins mfp-with-zoom', // class to remove default margin from left and right side 9 image: { 10 verticalFit: true, 11 tError: '<a href="%url%">The image #%curr%</a> could not be loaded.', 12 titleSrc: function(item) { 13 return item.el.attr('data-caption') + '<small>' + item.el.attr('data-desc') + '</small>'; 14 } 15 }, 16 zoom: { 17 enabled: true, 18 duration: 300 // don't forget to change the duration also in CSS 19 } 20 }); 21 22 23 $(document).ready(function() { 24 $('.popup-gallery').magnificPopup({ 25 delegate: 'a', 26 type: 'image', 27 tLoading: 'Loading image #%curr%...', 28 mainClass: 'mfp-img-mobile', 29 gallery: { 30 enabled: true, 31 navigateByImgClick: true, 32 preload: [0,1] // Will preload 0 - before current, and 1 after the current image 33 }, 34 image: { 35 tError: '<a href="%url%">The image #%curr%</a> could not be loaded.', 36 titleSrc: function(item) { 37 return item.el.attr('title') + '<small>by Marsel Van Oosten</small>'; 38 } 39 } 40 }); 41 }); 42 43 44});
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.