Team:Cornell/templates/header

From 2012.igem.org

(Difference between revisions)
Line 30: Line 30:
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 50: Line 49:
if(needprev) prev.parentNode.style.display="block";
if(needprev) prev.parentNode.style.display="block";
if(neednext) next.parentNode.style.display="block";
if(neednext) next.parentNode.style.display="block";
 +
if(!needprev && !neednext) start.parentNode.style.display="block";
}
}
</script>  
</script>  
Line 61: Line 61:
<a id="tourNext" class="button radius"> Next<br/>Tour Page </a>
<a id="tourNext" class="button radius"> Next<br/>Tour Page </a>
</div>
</div>
-
<div class="tour" style="right:0;display:block">  
+
<div class="tour" style="right:0;display:none">  
<a id="tourStart" class="button radius"> Start<br/>Tour! </a>
<a id="tourStart" class="button radius"> Start<br/>Tour! </a>
</div>
</div>

Revision as of 19:15, 19 June 2013