Team:Cornell/templates/header
From 2012.igem.org
(Difference between revisions)
Mastershot (Talk | contribs) |
|||
(63 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> | ||
+ | function fixTour() { | ||
+ | var links=new Array(); | ||
+ | links[0]="https://2012.igem.org/Team:Cornell/templates/tour"; | ||
+ | links[1]="https://2012.igem.org/Team:Cornell/Sandbox/project/wetlab"; | ||
+ | links[2]="somepage"; | ||
+ | var prev = document.getElementById("tourPrev"); | ||
+ | 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++) { | ||
+ | if(window.location.href.toString()==links[i]) { | ||
+ | if(i==0) { | ||
+ | neednext = true; | ||
+ | next.href=links[i+1]; | ||
+ | |||
+ | } | ||
+ | else if(i==links.length-1) { | ||
+ | needprev = true; | ||
+ | prev.href=links[i-1]; | ||
+ | } | ||
+ | else { | ||
+ | neednext = true; | ||
+ | needprev = true; | ||
+ | prev.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> | ||
</head> | </head> | ||
- | <body> | + | <body onload="fixTour()"> |
+ | <!-- TOUR TEMPLATE | ||
+ | <div class="tour" style="left:0;display:none"> | ||
+ | <a id="tourPrev" class="button radius"> Previous<br/>Tour Page </a> | ||
+ | </div> | ||
+ | <div class="tour" style="right:0;display:none"> | ||
+ | <a id="tourNext" class="button radius"> Next<br/>Tour Page </a> | ||
+ | </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 32: | Line 84: | ||
<a href="https://2012.igem.org/Team:Cornell">Home</a> | <a href="https://2012.igem.org/Team:Cornell">Home</a> | ||
</li> | </li> | ||
- | <li class="has-flyout pg-project pg-project_wetlab pg-project_drylab pg-project_hprac pg-project_safety"> | + | <li class="has-flyout pg-project pg-project_background pg-project_wetlab pg-project_drylab pg-project_hprac pg-project_gallery pg-project_safety"> |
<a href="https://2012.igem.org/Team:Cornell/project">Project</a> | <a href="https://2012.igem.org/Team:Cornell/project">Project</a> | ||
<a href="https://2012.igem.org/Team:Cornell/project" class="flyout-toggle"><span> </span></a> | <a href="https://2012.igem.org/Team:Cornell/project" class="flyout-toggle"><span> </span></a> | ||
Line 38: | Line 90: | ||
<li class="pg-project"> | <li class="pg-project"> | ||
<a href="https://2012.igem.org/Team:Cornell/project">Overview</a> | <a href="https://2012.igem.org/Team:Cornell/project">Overview</a> | ||
+ | </li> | ||
+ | <li class="pg-project_background"> | ||
+ | <a href="https://2012.igem.org/Team:Cornell/project/background">Background</a> | ||
</li> | </li> | ||
<li class="pg-project_wetlab"> | <li class="pg-project_wetlab"> | ||
Line 46: | Line 101: | ||
</li> | </li> | ||
<li class="pg-project_hprac"> | <li class="pg-project_hprac"> | ||
- | <a href="https://2012.igem.org/Team:Cornell/project/hprac | + | <a href="https://2012.igem.org/Team:Cornell/project/hprac">Human Practices</a> |
</li> | </li> | ||
<li class="pg-project_gallery"> | <li class="pg-project_gallery"> | ||
Line 64: | Line 119: | ||
</li> | </li> | ||
<li class="pg-notebook_wetlab"> | <li class="pg-notebook_wetlab"> | ||
- | <a href="https://2012.igem.org/Team:Cornell/notebook/wetlab | + | <a href="https://2012.igem.org/Team:Cornell/notebook/wetlab">Wet Lab</a> |
</li> | </li> | ||
<li class="pg-notebook_drylab"> | <li class="pg-notebook_drylab"> | ||
- | <a href="https://2012.igem.org/Team:Cornell/notebook/drylab/ | + | <a href="https://2012.igem.org/Team:Cornell/notebook/drylab/june">Dry Lab</a> |
</li> | </li> | ||
<li class="pg-notebook_strainlist"> | <li class="pg-notebook_strainlist"> | ||
Line 110: | 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