Line 14: | Line 14: | ||
$( "#load_menu_here" ).load( "https://2017.igem.org/HQ:Menu #Menu" , function() { | $( "#load_menu_here" ).load( "https://2017.igem.org/HQ:Menu #Menu" , function() { | ||
− | |||
− | |||
− | |||
//executes menu functionality ( accordion and toggles) once the menu is loaded | //executes menu functionality ( accordion and toggles) once the menu is loaded | ||
menu_functionality(); | menu_functionality(); | ||
+ | |||
+ | // highlights on which page/hub you are currently in | ||
+ | highlight_current_page(); | ||
}); | }); | ||
Line 42: | Line 42: | ||
$(".current_page").next().next().fadeIn(400); | $(".current_page").next().next().fadeIn(400); | ||
} | } | ||
+ | |||
+ | // switch ( (page_name.match( /\//g ) || []).length ) { // check how many "tiers" ( / ) the page name has in order to nest it | ||
} | } |
Revision as of 17:49, 13 December 2016