1/* 2 * Featured Image Popup Setting 3 */ 4 5jQuery(document).ready(function ($) { 6 $('.image-popup').magnificPopup({ 7 type: 'image', 8 image: { 9 titleSrc: function(item) { 10 return( $(item.el).find('img').attr('alt') ); 11 }, 12 verticalFit: false 13 }, 14 closeOnContentClick: true, 15 closeBtnInside: true, 16 zoom: { 17 enabled: true, 18 duration: 300, // don't foget to change the duration also in CSS 19 opener: function(element) { 20 return element.find('img'); 21 } 22 } 23 }); 24 $('.zoom-gallery, .entry-content').each(function(){ 25 $(this).magnificPopup({ 26 delegate: 'a:has(img)', 27 type: 'image', 28 closeOnContentClick: false, 29 closeBtnInside: false, 30 mainClass: 'mfp-with-zoom mfp-img-mobile', 31 image: { 32 verticalFit: false, 33 titleSrc: function(item) { 34 return( $(item.el).find('img').attr('alt') ); 35 } 36 }, 37 gallery: { 38 enabled: true, 39 tPrev: 'Ðазад (Ðнопка влево)', // title for left button 40 tNext: 'ÐпеÑÑд (Ðнопка впÑаво)', // title for right button 41 tCounter: '<span class="mfp-counter">%curr% из %total%</span>' // markup of counter 42 }, 43 zoom: { 44 enabled: true, 45 duration: 300, // don't foget to change the duration also in CSS 46 opener: function(element) { 47 return element.find('img'); 48 } 49 } 50 51 }); 52 }); 53});
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.