Team:Cornell/templates/header
From 2012.igem.org
(Difference between revisions)
R.Lizarralde (Talk | contribs) |
R.Lizarralde (Talk | contribs) |
||
Line 24: | Line 24: | ||
var prev = document.getElementById("tourPrev"); | var prev = document.getElementById("tourPrev"); | ||
var next = document.getElementById("tourNext"); | var next = document.getElementById("tourNext"); | ||
+ | var start = document.getElementById("tourStart"); | ||
+ | start.href=links[0]; | ||
var needprev = false; | var needprev = false; | ||
var neednext = 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]) { | ||
- | + | start.parentNode.style.display="none"; | |
if(i==0) { | if(i==0) { | ||
neednext = true; | neednext = true; | ||
Line 53: | Line 55: | ||
<body onload="fixTour()"> | <body onload="fixTour()"> | ||
<!-- TOUR TEMPLATE --> | <!-- TOUR TEMPLATE --> | ||
- | <div class="tour" style=" | + | <div class="tour" style="left:0;display:none"> |
<a id="tourPrev" class="small button radius"> Previous<br/>Tour Page </a> | <a id="tourPrev" class="small button radius"> Previous<br/>Tour Page </a> | ||
</div> | </div> | ||
- | <div class="tour" style=" | + | <div class="tour" style="right:0;display:none"> |
<a id="tourNext" class="small button radius"> Next<br/>Tour Page </a> | <a id="tourNext" class="small button radius"> Next<br/>Tour Page </a> | ||
</div> | </div> | ||
- | <div class="tour" style=" | + | <div class="tour" style="right:0;display:block"> |
<a id="tourStart" class="small button radius"> Start<br/>Tour! </a> | <a id="tourStart" class="small button radius"> Start<br/>Tour! </a> | ||
</div> | </div> |
Revision as of 19:10, 19 June 2013