Difference between revisions of "Template:AFCM-Egypt"

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").hover(function(){
+
$(".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 {  
  margin:0px;
+
 
    padding:0px;
+
 
     display:none;
 
     display:none;
     position:relative;
+
 
    left:0px;
+
     position:absolute;
    z-index: 99;
+
float:left;
    top:0px;
+
  top: 80%;
    padding-top: 50px
+
  left: 0;
 +
width: 150px; border: 1px solid #666;
 +
 
 
    
 
    
  

Revision as of 20:26, 7 August 2017