Team:Cornell/templates/header

From 2012.igem.org

(Difference between revisions)
Line 22: Line 22:
links[1]="https://2012.igem.org/Team:Cornell/Sandbox/project/wetlab";
links[1]="https://2012.igem.org/Team:Cornell/Sandbox/project/wetlab";
links[2]="somepage";
links[2]="somepage";
-
var prev = document.getElementById("prev");
+
var prev = document.getElementById("tourPrev");
-
var next = document.getElementById("next");
+
var next = document.getElementById("tourNext");
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]) {
 +
document.getElementById("tourStart").parentNode.style.display="none";
if(i==0) {
if(i==0) {
neednext = true;
neednext = true;
Line 52: Line 53:
<body onload="fixTour()">
<body onload="fixTour()">
<!-- TOUR TEMPLATE -->
<!-- TOUR TEMPLATE -->
-
<div class="tour" style="left:0;display:none">  
+
<div class="tour" style="margin:10px;left:0;display:none">  
-
<a id="prev" 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="right:0;display:none">  
+
<div class="tour" style="margin:10px;right:0;display:none">  
-
<a id="next" class="small button radius"> Next </a>
+
<a id="tourNext" class="small button radius"> Next<br/>Tour Page </a>
 +
</div>
 +
<div class="tour" style="margin:10px;right:0;display:block">
 +
<a id="tourStart" class="small button radius"> Start<br/>Tour! </a>
</div>
</div>
<!-- HEADER TEMPLATE -->
<!-- HEADER TEMPLATE -->

Revision as of 19:02, 19 June 2013