1(function($) { 2 // metaslider has been initilalised 3 $(document).on('metaslider/initialized', function (e, identifier) { 4 // if .ms-theme-cubic 5 if ($(identifier).closest('.metaslider.ms-theme-cubic').length) { 6 var $slider = $(identifier); 7 var $container = $(identifier).closest('.metaslider.ms-theme-cubic'); 8 var captions = $slider.find('.caption'); 9 if (captions.length) { 10 $container.addClass('ms-has-caption'); 11 } 12 $container.addClass('ms-loaded'); 13 } 14 $(window).trigger('resize'); 15 }); 16 $(window).on('load resize', function(e) { 17 // go through the sliders with this theme 18 $('.metaslider').each(function(index) { 19 var width = $(this).outerWidth(); 20 // if the slider width < 600px 21 if (width < 600) { 22 $(this).addClass('ms-is-small'); 23 } else { 24 $(this).removeClass('ms-is-small'); 25 } 26 }); 27 }); 28 29})(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.