Team:Cornell/templates/header
From 2012.igem.org
(Difference between revisions)
(added tour template) |
|||
Line 15: | Line 15: | ||
<!--[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> | ||
+ | <!-- TOUR SCRIPT --> | ||
+ | <script> | ||
+ | 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]="somelink"; | ||
+ | document.getElementById("prev").style.display="none"; | ||
+ | document.getElementById("next").style.display="none"; | ||
+ | for(var i=0;i<links.length;i++) { | ||
+ | if(window.location.href.toString()==links[i]) { | ||
+ | if(i==0) { | ||
+ | document.getElementById("prev").style.display="none"; | ||
+ | document.getElementById("next").href=links[i+1]; | ||
+ | |||
+ | } | ||
+ | else if(i==links.length-1) { | ||
+ | document.getElementById("prev").href=links[i-1]; | ||
+ | document.getElementById("next").style.display="none"; | ||
+ | } | ||
+ | else { | ||
+ | document.getElementById("prev").href=links[i-1]; | ||
+ | document.getElementById("next").href=links[i+1]; | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | </script> | ||
<![endif]--> | <![endif]--> | ||
</head> | </head> | ||
<body> | <body> | ||
+ | <!-- TOUR TEMPLATE --> | ||
+ | <div class="tour" style="left:0"> | ||
+ | <a id="prev"> Previous </a> | ||
+ | </div> | ||
+ | <div class="tour" style="right:0"> | ||
+ | <a id="next"> Next </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"> |
Revision as of 19:00, 14 June 2013