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 | + | var i = 1; |
- | + | 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('week' + i ).className = 'active'; | ||
} | } | ||
function filter(that) { | function filter(that) { | ||
Line 80: | Line 79: | ||
} | } | ||
document.getElementById(filt).style.display = "block"; | document.getElementById(filt).style.display = "block"; | ||
- | |||
for(var i = 1; i<20; i++) { | for(var i = 1; i<20; i++) { | ||
- | + | document.getElementById('week' + i).className = (that.id.substr(4) == i ? 'active' : ''); | |
} | } | ||
} | } |
Revision as of 21:38, 6 March 2013