Line 13: | Line 13: | ||
hide_show_menu(); | hide_show_menu(); | ||
menu_functionality(); | menu_functionality(); | ||
+ | |||
Line 27: | Line 28: | ||
}); | }); | ||
+ | highlight_current_page(); | ||
} | } | ||
+ | function highlight_current_page() { | ||
+ | |||
+ | wgPageName = wgPageName.replace(/\//g,"-"); // remove dashes from page name and turn them into "-" | ||
+ | |||
+ | $("#Team_submenu").addClass("current_page"); | ||
+ | |||
+ | } | ||
// allow button on the black menu bar to show/hide the side menu | // allow button on the black menu bar to show/hide the side menu | ||
Line 404: | Line 413: | ||
<div id="menu_content"> | <div id="menu_content"> | ||
− | <div class="menu_button | + | <div class="menu_button"> |
TEAM | TEAM | ||
</div> | </div> | ||
Line 411: | Line 420: | ||
<a href="https://2017.igem.org/Team:Example2/Team"> | <a href="https://2017.igem.org/Team:Example2/Team"> | ||
− | <div class="submenu_button"> | + | <div class="submenu_button" id="Team_submenu"> |
Team | Team | ||
</div> | </div> |
Revision as of 21:20, 8 March 2017