Team:Freiburg/Templates/header
From 2011.igem.org
(Difference between revisions)
(96 intermediate revisions not shown) | |||
Line 9: | Line 9: | ||
var splitted = new Array(); | var splitted = new Array(); | ||
if (url.search("2011.igem.org/Team:Freiburg/")<0){ | if (url.search("2011.igem.org/Team:Freiburg/")<0){ | ||
- | |||
url="home"; | url="home"; | ||
} | } | ||
Line 17: | Line 16: | ||
} | } | ||
var id = 'sub-'+ url; | var id = 'sub-'+ url; | ||
+ | var sbmenus= ['sub-team','sub-project', 'sub-home', 'sub-gallery', 'sub-sponsors', 'sub-humanpractices', 'sub-synbio oath']; | ||
+ | var smList = ["members#attributions#freiburg", "overview#description#results#modelling#notebook#sampledata", "", "", "", "oath#socioeconomicconsiderations#safety", ""]; | ||
+ | for (var i = 0; i < smList.length; i++){ | ||
+ | if (smList[i].search(url) >= 0){ | ||
+ | id = sbmenus[i]; | ||
+ | } | ||
+ | } | ||
hideSubmenu(id); | hideSubmenu(id); | ||
highlightMenuItem(url); | highlightMenuItem(url); | ||
Line 23: | Line 29: | ||
function highlightMenuItem(id){ | function highlightMenuItem(id){ | ||
if(document.getElementById(id) != null){ | if(document.getElementById(id) != null){ | ||
- | document.getElementById(id).style.fontWeight=''; | + | document.getElementById(id).style.fontWeight='bold'; |
array = document.getElementById(id).getElementsByTagName("span"); | array = document.getElementById(id).getElementsByTagName("span"); | ||
for (var i = 0; i < array.length; i++){ | for (var i = 0; i < array.length; i++){ | ||
array[i].style.display="inline"; | array[i].style.display="inline"; | ||
+ | array[i].style.fontWeight="bold"; | ||
} | } | ||
} | } | ||
Line 32: | Line 39: | ||
function hideSubmenu( elem ){ | function hideSubmenu( elem ){ | ||
- | + | var submenus= ['sub-team','sub-project', 'sub-home', 'sub-gallery', 'sub-sponsors', 'sub-humanpractices']; | |
- | var submenus= ['sub-team','sub-project', 'sub-home', 'sub-gallery', 'sub-sponsors']; | + | |
for( var i=0; i<submenus.length; i++){ | for( var i=0; i<submenus.length; i++){ | ||
if (elem == 'none'){ | if (elem == 'none'){ | ||
Line 40: | Line 47: | ||
else{ | else{ | ||
if( submenus[i] != elem ){ | if( submenus[i] != elem ){ | ||
- | |||
if (document.getElementById(submenus[i]) != null){ | if (document.getElementById(submenus[i]) != null){ | ||
document.getElementById(submenus[i]).style.display = "none"; | document.getElementById(submenus[i]).style.display = "none"; | ||
Line 50: | Line 56: | ||
if(document.getElementById(splitted[1]) != null){ | if(document.getElementById(splitted[1]) != null){ | ||
array = document.getElementById(splitted[1]).getElementsByTagName('span'); | array = document.getElementById(splitted[1]).getElementsByTagName('span'); | ||
- | for (var | + | for (var j = 0; j < array.length; j++){ |
- | array[ | + | array[j].style.display="inline"; |
} | } | ||
} | } | ||
Line 87: | Line 93: | ||
border: none; | border: none; | ||
} | } | ||
+ | #notebook-page-header{ | ||
+ | width: 100%; | ||
+ | height:25px; | ||
+ | padding-top:7px; | ||
+ | } | ||
+ | #notebook-back{ | ||
+ | width: 15%; | ||
+ | float:left; | ||
+ | } | ||
+ | #notebook-title{ | ||
+ | width: 75%; | ||
+ | float:left; | ||
+ | font-size:large; | ||
+ | text-align:center; | ||
+ | } | ||
+ | #notebook-title a{ | ||
+ | decoration:none; | ||
+ | color:black; | ||
+ | } | ||
+ | #notebook-next{ | ||
+ | width: 10%; | ||
+ | float:right; | ||
+ | } | ||
#content { | #content { | ||
background-color: #edeceb; | background-color: #edeceb; | ||
Line 244: | Line 273: | ||
} | } | ||
- | #navigation {font-size:1.05em; width: | + | #navigation {font-size:1.05em; width:120px; |
- | margin: | + | margin:10px; |
} | } | ||
- | #navigation ul {margin:0; padding: | + | #navigation ul {margin:0; padding:5px;} |
#navigation li {list-style: none; border-bottom:dashed; border-bottom-width:1px; border-color:#A5B3AA;} | #navigation li {list-style: none; border-bottom:dashed; border-bottom-width:1px; border-color:#A5B3AA;} | ||
#navigation li.sub2 {border-top:dashed; border-top-width:1px; border-color:#A5B3AA; border-bottom:none; } | #navigation li.sub2 {border-top:dashed; border-top-width:1px; border-color:#A5B3AA; border-bottom:none; } | ||
Line 255: | Line 284: | ||
cursor: pointer; | cursor: pointer; | ||
display:block; | display:block; | ||
- | height: | + | height:30px; |
- | line-height: | + | line-height: 30px; |
- | text-indent: | + | text-indent: 15px; |
text-decoration:none; | text-decoration:none; | ||
width:100%; | width:100%; | ||
Line 285: | Line 314: | ||
<div id="up_white_container"> | <div id="up_white_container"> | ||
<div id="over_the_header_button"> | <div id="over_the_header_button"> | ||
- | <div class="color"><a href=" | + | <div class="color"><a href="https://2011.igem.org/Team:Freiburg/Contact"> <img src="https://static.igem.org/mediawiki/2011/9/95/Contact_grey.png" height="80%"/> Contact </a></div> |
</div> | </div> | ||
</div> | </div> | ||
<div id=up_line> | <div id=up_line> | ||
<div id=up_line_header> | <div id=up_line_header> | ||
- | <div style="float: | + | <div style="float:left; position: absolute; bottom: 15px; left: -400px"> <a href="https://igem.org/Main_Page"><img src="https://static.igem.org/mediawiki/2011/8/8e/UNIPV_iGEMlogo.png" width="20%" title="Back to iGEM main page"/> </a></div> |
- | <div style="float:right; position: absolute; bottom: | + | <div style="float:right"> <a href="http://www.uni-freiburg.de/start-en.html?set_language=en"><img src="https://static.igem.org/mediawiki/2011/b/ba/Logo_Uni_Freiburg.png" width="30%"/> </a></div> |
+ | <div style="float:right; position: absolute; bottom: 10px; right: 375px"> <a href="http://www.startnext.de/lab-in-a-cell-studentenprojekt-zur-synthetischen-biologie"><img src="https://static.igem.org/mediawiki/2011/1/1a/Freiburg11_SupportUs.png" title="Support us on Startnext"/> </a></div> | ||
+ | <div style="float:right; position: absolute; bottom: 15px; right: 100px; padding-bottom:2px;"> </br>This is the wiki page </br>of the Freiburger student </br>team competing for iGEM 2011. </br>Thank you for your interest! </div> | ||
</div> | </div> | ||
</div> | </div> | ||
- | <div id=my_content> | + | <div id="my_content"> |
- | + | <div id="nav-body" style="width: 985px; float:left"> | |
- | <div id=navigation style="width: 150px; float:left"> | + | <div id="navigation" style="width: 150px; float:left"> |
<img src="https://static.igem.org/mediawiki/2011/7/7b/Logo_Ilinca.png" width=150px/> | <img src="https://static.igem.org/mediawiki/2011/7/7b/Logo_Ilinca.png" width=150px/> | ||
<ul> | <ul> | ||
- | <li><a id="home" href="https://2011.igem.org/Team:Freiburg" display="block | + | |
+ | |||
+ | <li><a id="home" href="https://2011.igem.org/Team:Freiburg" display="block" ><span class="blueSelect"> < </span>home<span class="blueSelect" display="none"> > </span></a> | ||
</li> | </li> | ||
- | <li><a id="team" href="https://2011.igem.org/Team:Freiburg/Team" display="block | + | |
+ | |||
+ | <li><a id="team" href="https://2011.igem.org/Team:Freiburg/Team" display="block"><span class="blueSelect"> < </span>team<span class="blueSelect"> > </span></a> | ||
<ul class="sub2" id="sub-team" display="none"> | <ul class="sub2" id="sub-team" display="none"> | ||
- | <li class="sub2"><a href=" | + | <li id="members" class="sub2"><a href="https://2011.igem.org/Team:Freiburg/Members"> <span class="blue"> → </span>members</a></li> |
- | <li class="sub2"><a href=" | + | <li id="attributions" class="sub2"><a href="https://2011.igem.org/Team:Freiburg/Attributions"> <span class="blue"> → </span>attributions</a></li> |
- | <li class="sub2"><a href=" | + | <li id="freiburg" class="sub2"><a href="https://2011.igem.org/Team:Freiburg/Freiburg"> <span class="blue"> → </span>freiburg</a></li> |
</ul> | </ul> | ||
</li> | </li> | ||
- | <li><a id="project" href="https://2011.igem.org/Team:Freiburg/Project" display="block | + | |
+ | |||
+ | <li><a id="project" href="https://2011.igem.org/Team:Freiburg/Project" display="block"><span class="blueSelect"> < </span>project<span class="blueSelect"> > </span></a> | ||
<ul class="sub2" id="sub-project" display="none"> | <ul class="sub2" id="sub-project" display="none"> | ||
- | <li class="sub2"><a href=" | + | <li id='description' class="sub2"><a href="https://2011.igem.org/Team:Freiburg/Description"><span class="blue"> → </span>description</a></li> |
- | + | <li id='results' class="sub2"><a href="https://2011.igem.org/Team:Freiburg/Results"><span class="blue"> → </span>results</a></li> | |
- | <li class="sub2"><a href=" | + | <li id='modelling' class="sub2"><a href="https://2011.igem.org/Team:Freiburg/Modelling"><span class="blue"> → </span>modeling</a></li> |
- | + | <li id = "notebook" class="sub2"><a href="https://2011.igem.org/Team:Freiburg/Notebook"><span class="blue"> → </span>notebook</a></li> | |
- | <li class="sub2"><a href=" | + | <li id = "sampledata" class="sub2"><a href="https://2011.igem.org/Team:Freiburg/SampleData"><span class="blue"> → </span>sample data</a></li> |
- | <li class="sub2"><a href=" | + | |
- | <li class="sub2"><a href=" | + | |
</ul> </li> | </ul> </li> | ||
- | + | ||
- | <li><a id="sponsors" href="https://2011.igem.org/Team:Freiburg/Sponsors" display="block" | + | |
+ | <li><a id="humanpractices" href="https://2011.igem.org/Team:Freiburg/Oath" ><span class="blueSelect"> < </span>human practices<span class="blueSelect" display="none"> > </span></a> | ||
+ | <ul class="sub2" id="sub-humanpractices" display="none"> | ||
+ | <li id='oath' class="sub2"><a href="https://2011.igem.org/Team:Freiburg/Oath"><span class="blue"> → </span>oath</a></li> | ||
+ | <li id='socioeconomicconsiderations' class="sub2"><a href="https://2011.igem.org/Team:Freiburg/SocioeconomicConsiderations"><span class="blue"> → </span>ethics</a></li> | ||
+ | <li id="safety" class="sub2"><a href="https://2011.igem.org/Team:Freiburg/Safety"><span class="blue"> → </span>safety</a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | |||
+ | <li><a id="gallery" href="https://2011.igem.org/Team:Freiburg/Gallery" ><span class="blueSelect"> < </span>gallery<span class="blueSelect" display="none"> > </span></a> </li> | ||
+ | |||
+ | |||
+ | <li><a id="sponsors" href="https://2011.igem.org/Team:Freiburg/Sponsors" display="block" ><span class="blueSelect"> < </span>sponsors<span class="blueSelect"> > </span></a> </li> | ||
+ | |||
+ | <li><a id="synbio oath" href="https://2011.igem.org/forum/Topic_List?n=368&s=1" ><span class="blueSelect"> < </span>to the forums<span class="blueSelect" display="none"> > </span></a> </li> | ||
</ul> | </ul> | ||
</div> | </div> | ||
<div id=noNavigationContent> | <div id=noNavigationContent> | ||
</html> | </html> |
Latest revision as of 01:37, 22 September 2011