Team:Cornell/Sandbox/notebook
From 2012.igem.org
(Difference between revisions)
R.Lizarralde (Talk | contribs) |
R.Lizarralde (Talk | contribs) |
||
Line 8: | Line 8: | ||
function load() { | function load() { | ||
alert("hello"); | alert("hello"); | ||
- | + | if(document.location == "https://2012.igem.org/Team:Cornell/Sandbox/notebook"){ | |
document.getElementById("week1entry").style.display = 'block'; | document.getElementById("week1entry").style.display = 'block'; | ||
} | } | ||
- | + | else { | |
- | document.getElementById("week" + i + "entry").style.display = 'block'; | + | var i = document.location.charAt(50); |
- | + | alert(var); | |
+ | document.getElementById("week" + i + "entry").style.display = 'block'; | ||
+ | } | ||
} | } | ||
</script> | </script> |
Revision as of 23:45, 5 March 2013