Difference between revisions of "Template:CCU Taiwan"

Line 25: Line 25:
 
$(this).children().toggleClass("open");
 
$(this).children().toggleClass("open");
 
// show or hide the submenu
 
// show or hide the submenu
$(this).next('.submenu_wrapper').fadeToggle(0);
+
$(this).next('.submenu_wrapper').fadeToggle(400);
 
});
 
});
  
 
// when the screen size is smaller than 800px, the display_menu_control button appears and will show/hide the whole menu
 
// when the screen size is smaller than 800px, the display_menu_control button appears and will show/hide the whole menu
 
$("#display_menu_control").click(function(){
 
$("#display_menu_control").click(function(){
$('#menu_content').fadeToggle(0);
+
$('#menu_content').fadeToggle(400);
 
});
 
});
  
Line 45: Line 45:
  
 
// 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
$(".current_page").parents(".submenu_wrapper").fadeIn(0);
+
$(".current_page").parents(".submenu_wrapper").fadeIn(400);
 
// change the +/- symbol of the corresponding menu button
 
// change the +/- symbol of the corresponding menu button
 
$(".current_page").parents(".submenu_wrapper").prev().children().toggleClass("open");
 
$(".current_page").parents(".submenu_wrapper").prev().children().toggleClass("open");
Line 69: Line 69:
  
 
// show/hide the menu wrapper
 
// show/hide the menu wrapper
$(".igem_2017_menu_wrapper").fadeToggle("0");
+
$(".igem_2017_menu_wrapper").fadeToggle("100");
 
});
 
});
 
   }  
 
   }  
Line 75: Line 75:
 
// because the black menu bars loads at a different time than the rest of the page, this function is set on a time out so it can run again in case it has not been loaded yet
 
// because the black menu bars loads at a different time than the rest of the page, this function is set on a time out so it can run again in case it has not been loaded yet
 
else {
 
else {
     setTimeout(hide_show_menu, 0);
+
     setTimeout(hide_show_menu, 15);
 
}
 
}
 
}
 
}

Revision as of 15:19, 23 July 2017

CCU_Taiwan