Line 2: | Line 2: | ||
<style> | <style> | ||
− | |||
− | |||
/********************************* DEFAULT WIKI SETTINGS ********************************/ | /********************************* DEFAULT WIKI SETTINGS ********************************/ | ||
#sideMenu, #top_title {display:none;} | #sideMenu, #top_title {display:none;} | ||
− | #content { padding:0px; width: | + | #content { padding:0px; width:1000px; margin-top:-7px; margin-left:0px;} |
− | body { | + | body {background-color:white; } |
− | #bodyContent h1, #bodyContent h2, #bodyContent h3, #bodyContent h4, #bodyContent h5 | + | #bodyContent h1, #bodyContent h2, #bodyContent h3, #bodyContent h4, #bodyContent h5 { margin-bottom: 0px; } |
/********************************* MENU ********************************/ | /********************************* MENU ********************************/ | ||
/* Wrapper for the menu */ | /* Wrapper for the menu */ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
.menu_wrapper { | .menu_wrapper { | ||
width:150px; | width:150px; | ||
Line 395: | Line 177: | ||
padding: 10px 0px; | padding: 10px 0px; | ||
float:left; | float:left; | ||
− | background-color: | + | background-color:white; |
} | } | ||
Line 574: | Line 356: | ||
− | < | + | <!-- This tells the browser that your page is responsive --> |
− | + | ||
− | + | <head> | |
− | < | + | <meta name="viewport" content="width=device-width, initial-scale=1"> |
− | + | </head> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | <div class="menu_wrapper" > | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | <div class="collapsable_menu_control"> MENU ▤ </div> | |
− | + | ||
− | + | <ul id="accordion" class="accordion"> | |
− | + | ||
− | + | <li class="menu_item"> <a href="https://2016.igem.org/Team:Virginia">HOME </a> </li> | |
− | + | ||
− | + | ||
− | + | <li class="menu_item"> <div class="icon plus"></div> TEAM | |
− | + | <ul class="submenu"> | |
− | + | <li> <a href=" https://2016.igem.org/Team:Virginia/Team"> Team </a> </li> | |
− | + | <li> <a href="https://2016.igem.org/Team:Virginia/Collaborations">★ Collaborations </a> </li> | |
− | + | </ul> | |
− | + | </li> | |
− | + | ||
− | + | <li class="menu_item"> <div class="icon plus"></div> PROJECT | |
− | + | <ul class="submenu"> | |
− | + | <li> <a href="https://2016.igem.org/Team:Virginia/Description"> ★ Description </a></li> | |
− | + | <li> <a href="https://2016.igem.org/Team:Virginia/Design"> ★ Design </a></li> | |
− | + | <li> <a href="https://2016.igem.org/Team:Virginia/Experiments"> Experiments </a></li> | |
− | + | <li> <a href="https://2016.igem.org/Team:Virginia/Proof"> ★ Proof of Concept </a></li> | |
− | + | <li> <a href="https://2016.igem.org/Team:Virginia/Demonstrate"> ★ Demonstrate </a></li> | |
− | + | <li> <a href="https://2016.igem.org/Team:Virginia/Results"> Results </a></li> | |
− | + | <li> <a href="https://2016.igem.org/Team:Virginia/Notebook"> Notebook </a></li> | |
− | + | </ul> | |
− | + | </li> | |
− | + | ||
− | + | <li class="menu_item"> <div class="icon plus"></div> PARTS | |
− | + | <ul class="submenu"> | |
− | + | <li> <a href="https://2016.igem.org/Team:Virginia/Parts">Parts </a></li> | |
− | + | <li> <a href="https://2016.igem.org/Team:Virginia/Basic_Part"> ★ Basic Parts </a></li> | |
− | + | <li> <a href="https://2016.igem.org/Team:Virginia/Composite_Part"> ★ Composite Parts </a></li> | |
− | + | <li> <a href="https://2016.igem.org/Team:Virginia/Part_Collection"> ★ Part Collection </a></li> | |
− | + | </ul> | |
− | + | </li> | |
− | + | ||
− | + | ||
− | + | <li class="menu_item"> <a href="https://2016.igem.org/Team:Virginia/Safety"> SAFETY </a> </li> | |
− | + | ||
− | + | ||
− | + | <li class="menu_item"> <a href="https://2016.igem.org/Team:Virginia/Attributions">★ ATTRIBUTIONS </a></li> | |
− | + | ||
− | + | ||
− | + | <li class="menu_item"> <div class="icon plus"></div> HUMAN PRACTICES | |
− | + | <ul class="submenu"> | |
− | + | <li> <a href="https://2016.igem.org/Team:Virginia/Human_Practices"> Human Practices </a></li> | |
− | + | <li> <a href="https://2016.igem.org/Team:Virginia/HP/Silver">★ Silver </a></li> | |
− | + | <li> <a href="https://2016.igem.org/Team:Virginia/HP/Gold">★ Gold </a></li> | |
− | + | <li> <a href="https://2016.igem.org/Team:Virginia/Integrated_Practices"> ★ Integrated Practices </a></li> | |
− | + | <li> <a href="https://2016.igem.org/Team:Virginia/Engagement">★ Engagement </a></li> | |
− | + | </ul> | |
− | + | </li> | |
− | + | ||
− | + | ||
− | + | <li class="menu_item"> <div class="icon plus"></div> AWARDS | |
− | + | <ul class="submenu"> | |
− | + | <li><a href="https://2016.igem.org/Team:Virginia/Entrepreneurship"> ★ Entrepreneurship </a></li> | |
− | + | <li> <a href="https://2016.igem.org/Team:Virginia/Hardware"> ★ Hardware </a></li> | |
− | + | <li> <a href="https://2016.igem.org/Team:Virginia/Software">★ Software </a></li> | |
− | + | <li> <a href="https://2016.igem.org/Team:Virginia/Measurement">★ Measurement </a></li> | |
− | + | <li> <a href="https://2016.igem.org/Team:Virginia/Model">★ Model </a></li> | |
− | + | ||
− | + | </ul> | |
− | + | </li> | |
− | <li | + | </ul> |
− | + | ||
− | + | </div> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | <div class="content_wrapper"> | |
− | + | ||
− | + | ||
− | + | ||
− | + | <h1 id="team_name"> </h1> | |
− | + | <h4 id="page_name"> </h4> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
Line 692: | Line 463: | ||
$("#HQ_page").attr('id',''); | $("#HQ_page").attr('id',''); | ||
− | |||
+ | if ( wgPageName.substring( 0, 8) == "Template") { // if the page is a template it displays the full name in a single line | ||
+ | $("#team_name").html( wgPageName ); | ||
+ | } | ||
+ | else if ( ( (wgPageName.match(/\//g) || []).length ) == 0 ) { // if it is the home page , just print the team's name | ||
+ | $("#team_name").html( wgPageName.substring( 5, wgPageName.length ) ); | ||
+ | } | ||
+ | else { | ||
+ | // this adds the team's name as an h1 | ||
+ | $("#team_name").html( wgPageName.substring( 5 , wgPageName.indexOf("/") ) ); | ||
− | $('#accordion').find('.menu_item'). | + | // this adds the page's title as an h4 |
+ | $("#page_name").html ( ( wgPageName.substring( wgPageName.indexOf("/") + 1, wgPageName.length ) ).replace( /\/|_/g , " ") ); | ||
+ | } | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | $('#accordion').find('.menu_item').click(function(){ | ||
//Expand or collapse this panel | //Expand or collapse this panel | ||
Line 719: | Line 505: | ||
− | $(".collapsable_menu_control"). | + | $(".collapsable_menu_control").click(function() { |
$(".menu_item").toggle(); | $(".menu_item").toggle(); | ||
}); | }); | ||
Line 729: | Line 515: | ||
}); | }); | ||
+ | |||
+ | |||
Latest revision as of 14:13, 1 July 2016