Difference between revisions of "Template:Main2017"

Line 15: Line 15:
 
$( "#load_menu_here" ).load( "https://2017.igem.org/HQ:Menu #Menu" , function() {
 
$( "#load_menu_here" ).load( "https://2017.igem.org/HQ:Menu #Menu" , function() {
  
 +
// highlights on which page/hub you are currently in
 
$('#' + wgPageName).addClass("current_page");
 
$('#' + wgPageName).addClass("current_page");
$(".current_page" > ".submenu").fadeIn()
 
 
$(".current_page").next().addClass("less");
 
$(".current_page").next().addClass("less");
 +
$(".current_page").next().next().fadeIn(400);
  
 
//executes menu functionality ( accordion and toggles) once the menu is loaded
 
//executes menu functionality ( accordion and toggles) once the menu is loaded

Revision as of 04:49, 13 December 2016