Team:Cornell/templates/tour

From 2012.igem.org

(Difference between revisions)
(Created page with "<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ --> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> <!--[if IE 7]>...")
 
(35 intermediate revisions not shown)
Line 3: Line 3:
<!--[if IE 7]>    <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js lt-ie9" lang="en"> <![endif]-->
-
<!--[if gt IE 8]><!-->
+
<!--[if gt IE 8]><!-->{{:Team:Cornell/templates/header}}
 +
Tour 1
 +
<!-- MOVED FUNCTIONALITY TO HEADER
<html class="no-js" lang="en">
<html class="no-js" lang="en">
-
<!--<![endif]-->
 
-
<head>
 
-
<meta charset="utf-8" />
 
-
<meta name="viewport" content="width=device-width" />
 
-
<link rel="stylesheet" href="https://2012.igem.org/Team:Cornell/stylesheets/foundation?action=raw&ctype=text/css">
 
-
<link rel="stylesheet" href="https://2012.igem.org/Team:Cornell/stylesheets/app?action=raw&ctype=text/css">
 
-
<script src="https://2012.igem.org/Team:Cornell/javascripts/modernizr.foundation?action=raw&ctype=text/javascript"></script>
 
-
<!-- IE Fix for HTML5 Tags -->
 
-
<!--[if lt IE 9]>
 
-
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
 
-
<![endif]-->
 
-
</head>
 
<body>
<body>
-
<div>
+
<div class="tour" style="left:0">
-
<a href="https://2012.igem.org/Team:Cornell/Sandbox" style="position:fixed; bottom:0; left:0"> Previous </a>
+
<a id="prev"> Previous </a>
</div>
</div>
-
<div>
+
<div class="tour" style="right:0">
-
<a href="https://2012.igem.org/Team:Cornell/Sandbox" style="position:fixed; bottom:0; right:0"> Next </a>
+
<a id="next"> Next </a>
</div>
</div>
</body>
</body>
 +
<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";
 +
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>
</html>
</html>
 +
-->

Latest revision as of 02:27, 20 June 2013


Tour 1