Difference between revisions of "Template:Example2"

m (Changed protection level for "Template:Example2" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) [cascading])
 
(34 intermediate revisions by 6 users not shown)
Line 42: Line 42:
  
 
// select a page from the menu based on the id assigned to it and the current page name and add the class "current page" to make it change background color
 
// select a page from the menu based on the id assigned to it and the current page name and add the class "current page" to make it change background color
$("#"+  wgPageName.substring(wgPageName.indexOf("/")+1, wgPageName.length ) + "_page").addClass("current_page");
+
$("#"+  wgPageName.substring(wgPageName.lastIndexOf("/")+1, wgPageName.length ) + "_page").addClass("current_page");
  
 
// 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
Line 123: Line 123:
 
}
 
}
  
 +
/* this hides the scrollbar to keep view consistency */
 +
.igem_2017_menu_wrappe::-webkit-scrollbar {
 +
display: none;
 +
}
 
 
 
 
Line 411: Line 415:
 
.igem_2017_menu_wrapper #display_menu_control { display:none; }
 
.igem_2017_menu_wrapper #display_menu_control { display:none; }
 
#menu_content { display:block;}
 
#menu_content { display:block;}
 +
.menu_button.direct_to_page {padding-left: 17px;}
 
 
 
}
 
}
Line 424: Line 429:
 
.igem_2017_menu_wrapper #display_menu_control { display:block; }
 
.igem_2017_menu_wrapper #display_menu_control { display:block; }
 
#menu_content { display:none;}
 
#menu_content { display:none;}
 +
.igem_2017_menu_wrapper .menu_button .expand_collapse_icon { width: 5%; }
 +
.menu_bottom_padding {display:none;}
 +
.menu_button.direct_to_page { padding-left: 36px; }
 
}
 
}
  
Line 577: Line 585:
 
<a href="https://2017.igem.org/Team:Example2/Attributions">
 
<a href="https://2017.igem.org/Team:Example2/Attributions">
 
<div class="submenu_button"  id="Attributions_page">
 
<div class="submenu_button"  id="Attributions_page">
Attribution
+
Attributions
 
</div>
 
</div>
 
</a>
 
</a>
Line 630: Line 638:
 
</div>  
 
</div>  
 
</a>
 
</a>
 +
  
  
Line 644: Line 653:
  
 
<a href="https://2017.igem.org/Team:Example2/HP/Silver">
 
<a href="https://2017.igem.org/Team:Example2/HP/Silver">
<div class="submenu_button" >
+
<div class="submenu_button"  id="Silver_page">
 
Silver HP
 
Silver HP
 
</div>
 
</div>
Line 650: Line 659:
  
 
<a href="https://2017.igem.org/Team:Example2/HP/Gold_Integrated">
 
<a href="https://2017.igem.org/Team:Example2/HP/Gold_Integrated">
<div class="submenu_button">
+
<div class="submenu_button" id="Gold_Integrated_page">
 
Integrated and Gold
 
Integrated and Gold
 
</div>
 
</div>
Line 716: Line 725:
  
 
</div>  
 
</div>  
 +
 +
<a href="https://igem.org/2017_Judging_Form?team=Example2">
 +
<div class="menu_button direct_to_page">
 +
JUDGING FORM
 +
</div>
 +
</a>
 +
 +
 
 
 
<div class="menu_bottom_padding" >
 
<div class="menu_bottom_padding" >
Line 721: Line 738:
 
 
 
</div>
 
</div>
 +
 +
 +
 +
 
</div>
 
</div>
  
Line 727: Line 748:
 
<!-- start of content -->
 
<!-- start of content -->
 
<div class="igem_2017_content_wrapper">
 
<div class="igem_2017_content_wrapper">
 +
<h1>Example2</h1>

Latest revision as of 14:03, 15 September 2017

Example2