AbdelGawad (Talk | contribs) |
AbdelGawad (Talk | contribs) |
||
Line 21: | Line 21: | ||
//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"). | + | $(".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 28: | Line 28: | ||
$(this).next('.submenu_wrapper').fadeToggle(1000); | $(this).next('.submenu_wrapper').fadeToggle(1000); | ||
}); | }); | ||
− | |||
− | |||
− | |||
− | |||
− | |||
Line 228: | Line 223: | ||
/* wrapper for the submenu items, they are hidden by default*/ | /* wrapper for the submenu items, they are hidden by default*/ | ||
.igem_2017_menu_wrapper .submenu_wrapper { | .igem_2017_menu_wrapper .submenu_wrapper { | ||
− | + | ||
− | + | ||
display:none; | display:none; | ||
− | position: | + | |
− | + | position:absolute; | |
− | + | float:left; | |
− | + | top: 80%; | |
− | + | left: 0; | |
+ | width: 150px; border: 1px solid #666; | ||
+ | |||
Revision as of 20:26, 7 August 2017