Line 25: | Line 25: | ||
//when clicking on a "menu_button", it will change the "+/-" accordingly and it will show/hide the corresponding submenu | //when clicking on a "menu_button", it will change the "+/-" accordingly and it will show/hide the corresponding submenu | ||
− | + | $(".menu_button").click(function(){ | |
// add or remove the class "open" , this class holds the "-" | // add or remove the class "open" , this class holds the "-" | ||
Line 31: | Line 31: | ||
// show or hide the submenu | // show or hide the submenu | ||
$(this).next('.submenu_wrapper').fadeToggle(400); | $(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 | ||
Line 59: | Line 59: | ||
// allow button on the black menu bar to show/hide the side menu | // allow button on the black menu bar to show/hide the side menu | ||
− | function hide_show_menu() { | + | /*function hide_show_menu() { |
// 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 | ||
Line 85: | Line 85: | ||
− | }); | + | });*/ |
Revision as of 02:16, 22 July 2017