Team:Cornell/Sandbox/notebook
From 2012.igem.org
(Difference between revisions)
R.Lizarralde (Talk | contribs) |
|||
Line 14: | Line 14: | ||
var i = document.location.href.charAt(51); | var i = document.location.href.charAt(51); | ||
document.getElementById('week' + i + 'entry').style.display = 'block'; | document.getElementById('week' + i + 'entry').style.display = 'block'; | ||
- | document.getElementById('week1entry').style.display = 'none'; | + | if(i!=1) { |
- | + | document.getElementById('week1entry').style.display = 'none'; | |
+ | document.getElementById('week1').className = ''; | ||
+ | } | ||
document.getElementById('week' + i ).className = 'active'; | document.getElementById('week' + i ).className = 'active'; | ||
} | } |
Revision as of 00:46, 7 March 2013