Line 42: | Line 42: | ||
// select a page from the menu based on the id assigned to it and the current page name and add the class "current page" to make it change background color | // select a page from the menu based on the id assigned to it and the current page name and add the class "current page" to make it change background color | ||
− | $("#"+ wgPageName.substring(wgPageName. | + | $("#"+ wgPageName.substring(wgPageName.lastIndexOf("/")+1, wgPageName.length ) + "_page").addClass("current_page"); |
// now that the current_page class has been added to a menu item, make the submenu fade in | // now that the current_page class has been added to a menu item, make the submenu fade in | ||
Line 649: | Line 649: | ||
<a href="https://2017.igem.org/Team:Example2/HP/Silver"> | <a href="https://2017.igem.org/Team:Example2/HP/Silver"> | ||
− | <div class="submenu_button" > | + | <div class="submenu_button" id="Silver_page"> |
Silver HP | Silver HP | ||
</div> | </div> | ||
Line 655: | Line 655: | ||
<a href="https://2017.igem.org/Team:Example2/HP/Gold_Integrated"> | <a href="https://2017.igem.org/Team:Example2/HP/Gold_Integrated"> | ||
− | <div class="submenu_button" id=" | + | <div class="submenu_button" id="Gold_Integrated_page"> |
Integrated and Gold | Integrated and Gold | ||
</div> | </div> |
Revision as of 21:25, 22 March 2017