Team:Cornell/Sandbox/notebook
From 2012.igem.org
(Difference between revisions)
R.Lizarralde (Talk | contribs) |
R.Lizarralde (Talk | contribs) |
||
Line 7: | Line 7: | ||
<script> | <script> | ||
function load() { | function load() { | ||
- | var num = 3; | + | var num = 3; <!-- # of weeks --!> |
if(document.location == "https://2012.igem.org/Team:Cornell/Sandbox/notebook"){ | if(document.location == "https://2012.igem.org/Team:Cornell/Sandbox/notebook"){ | ||
document.getElementById("week1entry").style.display = 'block'; | document.getElementById("week1entry").style.display = 'block'; | ||
} | } | ||
else { | else { | ||
- | for(var i = 0; i < num; i++) { | + | for(var i = 0; i < num + 1; i++) { |
if(document.location == "https://2012.igem.org/Team:Cornell/Sandbox/notebook#" + i){ | if(document.location == "https://2012.igem.org/Team:Cornell/Sandbox/notebook#" + i){ | ||
alert(document.location); | alert(document.location); |
Revision as of 23:24, 5 March 2013