Team:Cornell/templates/header

From 2012.igem.org

(Difference between revisions)
 
(61 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>
+
<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]="http://2012.igem.org/Team:Cornell/templates/tour";
 +
links[1]="http://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 49: Line 101:
</li>
</li>
<li class="pg-project_hprac">
<li class="pg-project_hprac">
-
<a href="http://2012.igem.org/Team:Cornell/project/hprac/CEA">Human Practices</a>
+
<a href="http://2012.igem.org/Team:Cornell/project/hprac">Human Practices</a>
</li>
</li>
<li class="pg-project_gallery">
<li class="pg-project_gallery">
Line 67: Line 119:
</li>
</li>
<li class="pg-notebook_wetlab">
<li class="pg-notebook_wetlab">
-
<a href="http://2012.igem.org/Team:Cornell/notebook/wetlab/bootcamp">Wet Lab</a>
+
<a href="http://2012.igem.org/Team:Cornell/notebook/wetlab">Wet Lab</a>
</li>
</li>
<li class="pg-notebook_drylab">
<li class="pg-notebook_drylab">
-
<a href="http://2012.igem.org/Team:Cornell/notebook/drylab/week_1">Dry Lab</a>
+
<a href="http://2012.igem.org/Team:Cornell/notebook/drylab/june">Dry Lab</a>
</li>
</li>
<li class="pg-notebook_strainlist">
<li class="pg-notebook_strainlist">
Line 113: Line 165:
<li class="pg-outreach_awareness">
<li class="pg-outreach_awareness">
<a href="http://2012.igem.org/Team:Cornell/outreach/awareness">Public Awareness</a>
<a href="http://2012.igem.org/Team:Cornell/outreach/awareness">Public Awareness</a>
 +
</li>
 +
</ul>
 +
</li>
 +
<li class="has-flyout">
 +
<a style="visibility:none"></a>
 +
<a href="http://2012.igem.org/Team:Cornell">
 +
<div class="badge-wrapper-main">
 +
<img style="margin-left:2px;margin-top:-1px;height:65px;" src="http://2012.igem.org/wiki/images/7/70/Cornell2012Badge.png">
 +
</div> </a>
 +
<a href="http://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="http://2013.igem.org/Team:Cornell">
 +
<img style="margin-left:2px;margin-top:-1px;height:65px;" src="http://2012.igem.org/wiki/images/7/70/Cornell2012Badge.png">
 +
</a>
 +
</div>
 +
<a href="http://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="http://2013.igem.org/Team:Cornell">
 +
<img style="margin-left:7px;margin-top:2px;height:56px;" src="http://2013.igem.org/wiki/images/1/1c/CornellOrganofoamBadge.png">
 +
</a>
 +
</div>
 +
<a href="http://2013.igem.org/Team:Cornell">2013: Organofoam</a>
 +
</li>
 +
<li class="pg-badge_2011">
 +
<div class="badge-wrapper">
 +
<a href="http://2011.igem.org/Team:Cornell">
 +
<img style="margin-left:4px;margin-top:8px;height:44px;" src="http://2013.igem.org/wiki/images/4/46/CornellBiofactory.png">
 +
</a>
 +
</div>
 +
<a href="http://2011.igem.org/Team:Cornell">2011: Biofactory</a>
 +
</li>
 +
<li class="pg-badge_2010">
 +
<div class="badge-wrapper">
 +
<a href="http://2010.igem.org/Team:Cornell">
 +
<img style="margin-left:-3px;margin-top:6px;height:60px;" src="http://2013.igem.org/wiki/images/3/3c/CornellOmgOmvs.png">
 +
</a>
 +
</div>
 +
<a href="http://2010.igem.org/Team:Cornell">2010: OMG OMVs</a>
 +
</li>
 +
<li class="pg-badge_2009">
 +
<div class="badge-wrapper">
 +
<a href="http://2009.igem.org/Team:Cornell">
 +
<img style="margin-left:0px;height:60px;" src="http://2013.igem.org/wiki/images/a/a0/CornellCadmium.png">
 +
</a>
 +
</div>
 +
<a href="http://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