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( | + | $(this).next('.submenu_wrapper').fadeToggle(0); |
}); | }); | ||
// 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( | + | $('#menu_content').fadeToggle(0); |
}); | }); | ||
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( | + | $(".current_page").parents(".submenu_wrapper").fadeIn(0); |
// 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(" | + | $(".igem_2017_menu_wrapper").fadeToggle("0"); |
}); | }); | ||
} | } |
Revision as of 15:18, 23 July 2017