1(function($) { 2 'use strict'; 3 //Open submenu on hover in compact sidebar mode and horizontal menu mode 4 $(document).on('mouseenter mouseleave', '.sidebar .nav-item', function (ev) { 5 var body = $('body'); 6 var sidebarIconOnly = body.hasClass("sidebar-icon-only"); 7 var horizontalMenu = body.hasClass("horizontal-menu"); 8 var sidebarFixed = body.hasClass("sidebar-fixed"); 9 if(!('ontouchstart' in document.documentElement)) { 10 if(sidebarIconOnly || horizontalMenu) { 11 if(sidebarFixed) { 12 if(ev.type === 'mouseenter') { 13 body.removeClass('sidebar-icon-only'); 14 } 15 } 16 else { 17 var $menuItem = $(this); 18 if(ev.type === 'mouseenter') { 19 $menuItem.addClass('hover-open') 20 } 21 else { 22 $menuItem.removeClass('hover-open') 23 } 24 } 25 } 26 } 27 }); 28})(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.