1; 2(function($) { 3 $(document).ready(function(e) { 4 $('.sub-menu-box.preview-mode').each(function(index, element) { 5 var channel_content = ''; 6 var channel_count = 0; 7 $(this).find('.channel-content').each(function(index, element) { 8 if (channel_count == 0) { 9 $(this).addClass('active'); 10 } 11 channel_content += $(this)[0].outerHTML; 12 $(this).remove(); 13 channel_count++; 14 }); 15 $(this).append(channel_content); 16 }); 17 18 $('.dropdown-mega').on('mouseenter mouseleave', function() { 19 // find the first element to add active state 20 titles = $('.sub-menu-box .channel-title', $(this)); 21 if (titles.length > 0) { 22 var target = "#" + $(titles[0]).attr("data-target"); 23 $(".channel-content").removeClass("active"); 24 $(target).addClass("active"); 25 } 26 }); 27 28 $('.sub-menu-box .channel-title').on('mouseenter mouseleave', 29 function() { 30 var target = "#" + $(this).attr("data-target"); 31 $(".channel-content").removeClass("active"); 32 $(target).addClass("active"); 33 }, 34 function() {} 35 ) 36 }); 37 38}(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.