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