1jQuery(document).ready(function($) 2{ 3 var imageConf = { 4 markup: '<div class="mfp-figure">'+ 5 '<div class="mfp-close"></div>'+ 6 '<div class="mfp-img"></div>'+ 7 '<div class="mfp-bottom-bar">'+ 8 '<div class="mfp-title"></div>'+ 9 '<div class="mfp-description"></div>'+ 10 '<div class="mfp-counter"></div>'+ 11 '</div>'+ 12 '</div>', 13 titleSrc: function(item) 14 { 15 return item.el.find('img').attr('alt'); 16 } 17 }; 18 19 var callbacksConf = { 20 open: function() 21 { 22 $('.mfp-description').append(this.currItem.el.attr('alt')); 23 }, 24 afterChange: function() 25 { 26 $('.mfp-description').empty().append(this.currItem.el.attr('alt')); 27 } 28 } 29 30 // Single Image 31 $('a[href*=".jpg"], a[href*=".jpeg"], a[href*=".png"], a[href*=".gif"]').each(function() 32 { 33 //single image popup 34 if($(this).parents('.gallery').length == 0) 35 { 36 $(this).magnificPopup({ 37 type:'image', 38 callbacks: callbacksConf, 39 image: imageConf 40 }); 41 } 42 }); 43 44 // Gallery Images 45 $('.gallery').each(function() 46 { 47 $(this).magnificPopup({ 48 delegate: 'a[href*=".jpg"], a[href*=".jpeg"], a[href*=".png"], a[href*=".gif"]', 49 type: 'image', 50 gallery: { 51 enabled:true 52 }, 53 callbacks: callbacksConf, 54 image: imageConf 55 }); 56 }); 57});
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.