Line 442: | Line 442: | ||
// 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.lastIndexOf("/")+1, wgPageName.length ) + "_page").addClass("active"); | |
− | + | console.log("#"+ wgPageName.substring(wgPageName.lastIndexOf("/")+1, wgPageName.length ) + "_page"); | |
} | } | ||
Line 452: | Line 452: | ||
// in case you preview mode is selected, the menu is hidden for better visibility | // in case you preview mode is selected, the menu is hidden for better visibility | ||
+ | /* | ||
if (window.location.href.indexOf("submit") >= 0) { | if (window.location.href.indexOf("submit") >= 0) { | ||
$(".igem_2017_menu_wrapper").hide(); | $(".igem_2017_menu_wrapper").hide(); | ||
} | } | ||
− | + | */ | |
// if the black menu bar has been loaded | // if the black menu bar has been loaded | ||
if (document.getElementById('bars_item')) { | if (document.getElementById('bars_item')) { |
Revision as of 08:54, 14 July 2017