Team:Cornell/Sandbox/notebook
From 2012.igem.org
(Difference between revisions)
Line 11: | Line 11: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
function load() { | function load() { | ||
- | |||
if(document.location != "https://2012.igem.org/Team:Cornell/Sandbox/notebook") { | if(document.location != "https://2012.igem.org/Team:Cornell/Sandbox/notebook") { | ||
var i = document.location.href.charAt(51); | var i = document.location.href.charAt(51); | ||
+ | document.getElementById('week' + i + 'entry').style.display = 'block'; | ||
+ | document.getElementById('week1').className = ''; | ||
+ | document.getElementById('week' + i ).className = 'active'; | ||
} | } | ||
- | |||
- | |||
- | |||
} | } | ||
function filter(that) { | function filter(that) { | ||
Line 78: | Line 77: | ||
} | } | ||
var filt = that.id + "entry"; | var filt = that.id + "entry"; | ||
- | var all = document.getElementsByClassName( | + | var all = document.getElementsByClassName('nb-week'); |
for(var i = 0; i<all.length; i++) { | for(var i = 0; i<all.length; i++) { | ||
- | all[i].style.display = | + | all[i].style.display = 'none'; |
} | } | ||
- | document.getElementById(filt).style.display = | + | document.getElementById(filt).style.display = 'block'; |
} | } | ||
</script> | </script> |
Revision as of 22:14, 6 March 2013