1$(document).ready(function() { 2 $('#menu-vertical #menu-vertical-list').menuAim({ 3 activateCallback: activateSubmenu, 4 deactivateCallback: deactivateSubmenu, 5 }); 6 function activateSubmenu(row) { 7 if($(row).hasClass('dropdown')){ 8 $(row).addClass('menu-open'); 9 } 10 } 11 function deactivateSubmenu(row) {$(row).removeClass('menu-open');} 12 function exitMenu(row) {return true;} 13 $('.dropdown-menu-simple .nsmenu-haschild').menuAim({ 14 activateCallback: activateSubmenu2level, 15 deactivateCallback: deactivateSubmenu2level, 16 }); 17 function activateSubmenu2level(row) { 18 if($(row).hasClass('nsmenu-issubchild')){ 19 $(row).addClass('menu-open-2level'); 20 } 21 } 22 function deactivateSubmenu2level(row) {$(row).removeClass('menu-open-2level');} 23 function exitMenu2level(row) {return true;} 24 $('.dropdown-menu-simple .nsmenu-ischild-simple').menuAim({ 25 activateCallback: activateSubmenu4level, 26 deactivateCallback: deactivateSubmenu4level, 27 }); 28 function activateSubmenu4level(row) { 29 30 $(row).addClass('menu-open-4level');} 31 function deactivateSubmenu4level(row) {$(row).removeClass('menu-open-4level');} 32 function exitMenu4level(row) {return true;} 33 34 $(".ns-dd").hover(function() {$(this).parent().find('.parent-link').toggleClass('hover');}); 35 $(".child-box").hover(function() {$(this).parent().find('.with-child').toggleClass('hover');}); 36 $(".nsmenu-ischild.nsmenu-ischild-simple").hover(function() {$(this).parent().find('> a').toggleClass('hover');}); 37 $(".child_4level_simple").hover(function() {$(this).parent().find('> a').toggleClass('hover');}); 38 39 40 $('#menu-vertical #menu-vertical-list .toggle-child').on('click', function(e) { 41 e.stopPropagation(); 42 $(this).toggleClass('open'); 43 $(this).next().next().slideToggle(0); 44 }); 45 46 $('#additional-menu li.dropdown').hover(function() { 47 $(this).find('.dropdown-menu').stop(true, true).delay(10); 48 $(this).addClass('open'); 49 $(this).find('.dropdown-toggle').attr('aria-expanded', 'true'); 50 }, function() { 51 $(this).find('.dropdown-menu').stop(true, true).delay(10); 52 $(this).removeClass('open'); 53 $(this).find('.dropdown-toggle').attr('aria-expanded', 'false') 54 }); 55 56 // Menu 57 $('#menu-vertical .dropdown-menu').each(function() { 58 var menu = $('#menu-vertical').offset(); 59 var dropdown = $(this).parent().offset(); 60 61 var i = (dropdown.left + $(this).outerWidth()) - (menu.left + $('#menu-vertical').outerWidth()); 62 63 if (i > 0) { 64 $(this).css('margin-left', '-' + (i + 5) + 'px'); 65 } 66 }); 67//MENU 2 68nsmenu_menu(); 69additional_menu(); 70$( window ).resize(function() { 71 nsmenu_menu(); 72 additional_menu(); 73}); 74$( "#additional-menu a.dropdown-toggle" ).bind( "click", function() { 75 if(($(this).attr('href')!="javascript:void(0);")&&($( document ).width()>767)) 76 { 77 window.document.location=$(this).attr('href'); 78 } 79}); 80$( "#horizontal-menu a.dropdown-toggle" ).bind( "click", function() { 81 if(($(this).attr('href')!="javascript:void(0);")&&($( document ).width()>767)) 82 { 83 window.document.location=$(this).attr('href'); 84 } 85}); 86$( "#menu-vertical a.dropdown-toggle" ).bind( "click", function() { 87 if(($(this).attr('href')!="javascript:void(0);")&&($( document ).width()>767)) 88 { 89 window.document.location=$(this).attr('href'); 90 } 91}); 92 93function additional_menu(){ 94 $(".nsmenu-bigblock-additional").css('width',$("#additional-menu").outerWidth()-2); 95 $('#additional-menu .dropdown-menu').each(function() { 96 var menu = $('#additional-menu').offset(); 97 var dropdown = $(this).parent().offset(); 98 var i = (dropdown.left + $(this).outerWidth()) - (menu.left + $('#additional-menu').outerWidth()); 99 100 if (i > 0) { 101 $(this).css('margin-left', '-' + (i + 1) + 'px'); 102 } 103 var l=$(this).outerWidth()-2; 104 $(this).find(".nsmenu-ischild-simple").css('left',l); 105 106 }); 107} 108function nsmenu_menu(){ 109 $(".nsmenu-bigblock").css('width',$("#horizontal-menu .navbar-collapse").outerWidth()-2); 110 $('#horizontal-menu .dropdown-menu').each(function() { 111 var menu = $('#horizontal-menu .navbar-collapse').offset(); 112 var dropdown = $(this).parent().offset(); 113 var i = (dropdown.left + $(this).outerWidth()) - (menu.left + $('#horizontal-menu .navbar-collapse').outerWidth()); 114 115 if (i > 0) { 116 $(this).css('margin-left', '-' + (i + 1) + 'px'); 117 } 118 var l=$(this).outerWidth()-2; 119 $(this).find(".nsmenu-ischild-simple").css('left',l); 120 121 }); 122} 123}); 124 125
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.