1(function($) { 2 $(document).on('metaslider/initialized', function (e, identifier) { 3 if ($(identifier).closest('.metaslider.ms-theme-bitono').length) { 4 var slideshow = $(identifier); 5 6 // We look for Image slides only 7 slideshow.find('.slides > li.ms-image').each(function() { 8 var slide = $(this); 9 var caption = slide.find('.caption-wrap'); 10 var link = slide.find('.metaslider_image_link'); 11 12 if (caption.length > 0 && link.length > 0 && !link.hasClass('__link_ready')) { 13 link.addClass('__link_ready'); 14 caption.css('cursor','pointer'); 15 caption.find('a').on('click', function(e) { 16 // Prevent click event reaching caption 17 e.stopPropagation(); 18 }); 19 20 caption.on('click', function() { 21 window.open(link.attr('href'), link.attr('target') || '_self'); 22 }); 23 } 24 }); 25 } 26 }); 27})(jQuery) 28 29
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.