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"); | ||
- | + | alert(document.location); | |
+ | var num = 3; | ||
+ | for(int i = 0; i<num; i++) { | ||
+ | if(document.location == "https://2012.igem.org/Team:Cornell/Sandbox/notebook#" + i){ | ||
+ | alert(document.location + "hello"); | ||
+ | document.getElementById("week" + i + "entry").style.display = 'block'; | ||
+ | } | ||
+ | } | ||
} | } | ||
</script> | </script> |
Revision as of 23:06, 5 March 2013