Team:Cornell/templates/header
From 2012.igem.org
(Difference between revisions)
R.Lizarralde (Talk | contribs) |
Mastershot (Talk | contribs) |
||
(42 intermediate revisions not shown) | |||
Line 14: | Line 14: | ||
<!-- IE Fix for HTML5 Tags --> | <!-- IE Fix for HTML5 Tags --> | ||
<!--[if lt IE 9]> | <!--[if lt IE 9]> | ||
- | + | <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> | |
<![endif]--> | <![endif]--> | ||
+ | <style> | ||
+ | #footer-box { | ||
+ | visibility: hidden; | ||
+ | } | ||
+ | </style> | ||
<script> | <script> | ||
function fixTour() { | function fixTour() { | ||
Line 22: | Line 27: | ||
links[1]="https://2012.igem.org/Team:Cornell/Sandbox/project/wetlab"; | links[1]="https://2012.igem.org/Team:Cornell/Sandbox/project/wetlab"; | ||
links[2]="somepage"; | links[2]="somepage"; | ||
- | var prev = document.getElementById(" | + | var prev = document.getElementById("tourPrev"); |
- | var next = document.getElementById(" | + | var next = document.getElementById("tourNext"); |
- | + | var start = document.getElementById("tourStart"); | |
+ | start.href=links[0]; | ||
+ | var needprev = false; | ||
+ | var neednext = false; | ||
for(var i=0;i<links.length;i++) { | for(var i=0;i<links.length;i++) { | ||
if(window.location.href.toString()==links[i]) { | if(window.location.href.toString()==links[i]) { | ||
- | |||
- | |||
if(i==0) { | if(i==0) { | ||
- | + | neednext = true; | |
next.href=links[i+1]; | next.href=links[i+1]; | ||
} | } | ||
else if(i==links.length-1) { | else if(i==links.length-1) { | ||
- | + | needprev = true; | |
prev.href=links[i-1]; | prev.href=links[i-1]; | ||
} | } | ||
else { | else { | ||
+ | neednext = true; | ||
+ | needprev = true; | ||
prev.href=links[i-1]; | prev.href=links[i-1]; | ||
next.href=links[i+1]; | next.href=links[i+1]; | ||
} | } | ||
- | |||
} | } | ||
- | } | + | } |
- | + | if(needprev) prev.parentNode.style.display="block"; | |
- | + | if(neednext) next.parentNode.style.display="block"; | |
+ | else if(!needprev) start.parentNode.style.display="block"; | ||
} | } | ||
</script> | </script> | ||
</head> | </head> | ||
<body onload="fixTour()"> | <body onload="fixTour()"> | ||
- | <!-- TOUR TEMPLATE | + | <!-- TOUR TEMPLATE |
<div class="tour" style="left:0;display:none"> | <div class="tour" style="left:0;display:none"> | ||
- | <a id=" | + | <a id="tourPrev" class="button radius"> Previous<br/>Tour Page </a> |
</div> | </div> | ||
<div class="tour" style="right:0;display:none"> | <div class="tour" style="right:0;display:none"> | ||
- | <a id=" | + | <a id="tourNext" class="button radius"> Next<br/>Tour Page </a> |
</div> | </div> | ||
- | <! | + | <div class="tour" style="right:0;display:none"> |
+ | <a id="tourStart" class="button radius"> Start<br/>Tour! </a> | ||
+ | </div> | ||
+ | HEADER TEMPLATE --> | ||
<div class="row header off-canvas"> | <div class="row header off-canvas"> | ||
<div class="twelve columns centered header no-pad" id="header-wrapper"> | <div class="twelve columns centered header no-pad" id="header-wrapper"> | ||
Line 154: | Line 165: | ||
<li class="pg-outreach_awareness"> | <li class="pg-outreach_awareness"> | ||
<a href="https://2012.igem.org/Team:Cornell/outreach/awareness">Public Awareness</a> | <a href="https://2012.igem.org/Team:Cornell/outreach/awareness">Public Awareness</a> | ||
+ | </li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li class="has-flyout"> | ||
+ | <a style="visibility:none"></a> | ||
+ | <a href="https://2012.igem.org/Team:Cornell"> | ||
+ | <div class="badge-wrapper-main"> | ||
+ | <img style="margin-left:2px;margin-top:-1px;height:65px;" src="https://static.igem.org/mediawiki/2012/7/70/Cornell2012Badge.png"> | ||
+ | </div> </a> | ||
+ | <a href="https://2012.igem.org/Team:Cornell"><span> </span></a> | ||
+ | <ul class="flyout right" style="display:none;background:none;border:none;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none"> | ||
+ | <li class="pg-badge"> | ||
+ | <div class="badge-wrapper"> | ||
+ | <a href="https://2013.igem.org/Team:Cornell"> | ||
+ | <img style="margin-left:2px;margin-top:-1px;height:65px;" src="https://static.igem.org/mediawiki/2012/7/70/Cornell2012Badge.png"> | ||
+ | </a> | ||
+ | </div> | ||
+ | <a href="https://2013.igem.org/Team:Cornell" style="margin-top:-50px">2012: SAFE BET</a> | ||
+ | </li> | ||
+ | <li class="pg-badge_home"> | ||
+ | <div class="badge-wrapper"> | ||
+ | <a href="http://igem.engineering.cornell.edu"> | ||
+ | <img style="margin-left: 2px;margin-top: 2px;height: 56px;" src="http://igem.engineering.cornell.edu/img/CornellBadgeLogo2.png"> | ||
+ | </a> | ||
+ | </div> | ||
+ | <a href="http://igem.engineering.cornell.edu">Team Website</a> | ||
+ | </li> | ||
+ | <li class="pg-badge_2013"> | ||
+ | <div class="badge-wrapper"> | ||
+ | <a href="https://2013.igem.org/Team:Cornell"> | ||
+ | <img style="margin-left:7px;margin-top:2px;height:56px;" src="https://static.igem.org/mediawiki/2013/1/1c/CornellOrganofoamBadge.png"> | ||
+ | </a> | ||
+ | </div> | ||
+ | <a href="https://2013.igem.org/Team:Cornell">2013: Organofoam</a> | ||
+ | </li> | ||
+ | <li class="pg-badge_2011"> | ||
+ | <div class="badge-wrapper"> | ||
+ | <a href="https://2011.igem.org/Team:Cornell"> | ||
+ | <img style="margin-left:4px;margin-top:8px;height:44px;" src="https://static.igem.org/mediawiki/2013/4/46/CornellBiofactory.png"> | ||
+ | </a> | ||
+ | </div> | ||
+ | <a href="https://2011.igem.org/Team:Cornell">2011: Biofactory</a> | ||
+ | </li> | ||
+ | <li class="pg-badge_2010"> | ||
+ | <div class="badge-wrapper"> | ||
+ | <a href="https://2010.igem.org/Team:Cornell"> | ||
+ | <img style="margin-left:-3px;margin-top:6px;height:60px;" src="https://static.igem.org/mediawiki/2013/3/3c/CornellOmgOmvs.png"> | ||
+ | </a> | ||
+ | </div> | ||
+ | <a href="https://2010.igem.org/Team:Cornell">2010: OMG OMVs</a> | ||
+ | </li> | ||
+ | <li class="pg-badge_2009"> | ||
+ | <div class="badge-wrapper"> | ||
+ | <a href="https://2009.igem.org/Team:Cornell"> | ||
+ | <img style="margin-left:0px;height:60px;" src="https://static.igem.org/mediawiki/2013/a/a0/CornellCadmium.png"> | ||
+ | </a> | ||
+ | </div> | ||
+ | <a href="https://2009.igem.org/Team:Cornell" style="font-size:20px !important">2009: Cadmium Sensor</a> | ||
</li> | </li> | ||
</ul> | </ul> |
Latest revision as of 06:06, 29 August 2013