Line 16: | Line 16: | ||
// highlights on which page/hub you are currently in | // highlights on which page/hub you are currently in | ||
− | + | highlight_current_page(); | |
− | + | ||
− | + | ||
//executes menu functionality ( accordion and toggles) once the menu is loaded | //executes menu functionality ( accordion and toggles) once the menu is loaded | ||
Line 34: | Line 32: | ||
+ | |||
+ | function highlight_current_page () { | ||
+ | |||
+ | $('#' + wgPageName).addClass("current_page"); | ||
+ | |||
+ | if ( $( ".current_page" ).hasClass( "hub_link") == true ) { | ||
+ | $(".current_page").next().addClass("less"); | ||
+ | $(".current_page").next().next().fadeIn(400); | ||
+ | } | ||
+ | |||
+ | } | ||
Revision as of 17:37, 13 December 2016