1(function ($) { 2 3 "use strict"; 4 5 $.stecExtend(function (master) { 6 7 var $instance = master.$instance; 8 9 /** 10 * Handles reponsive classes 11 */ 12 var media = { 13 14 init: function () { 15 16 var parent = this; 17 18 $(window).on("resize", function () { 19 parent.mediaTrigger(); 20 }); 21 22 parent.mediaTrigger(); 23 }, 24 25 mediaTrigger: function () { 26 27 if ($instance.width() <= 600) { 28 $instance.removeClass("stec-media-med"); 29 $instance.addClass("stec-media-small"); 30 } 31 32 else if ($instance.width() <= 870) { 33 $instance.removeClass("stec-media-small"); 34 $instance.addClass("stec-media-med"); 35 } 36 37 else { 38 $instance.removeClass("stec-media-med stec-media-small"); 39 } 40 } 41 }; 42 43 media.init(); 44 45 46 }, 'onLayoutSet'); 47 48 49})(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.