Team:Cornell/Sandbox/notebook
From 2012.igem.org
(Difference between revisions)
R.Lizarralde (Talk | contribs) |
R.Lizarralde (Talk | contribs) |
||
Line 7: | Line 7: | ||
<script> | <script> | ||
function load() { | function load() { | ||
- | + | var num = 3; | |
+ | for(int i = 0; i<num; i++) { | ||
+ | if(document.location.href == "https://2012.igem.org/Team:Cornell/Sandbox/notebook#" + i){ | ||
+ | document.getElementById("week" + i + "entry").style.display = 'block'; | ||
+ | } | ||
+ | } | ||
} | } | ||
</script> | </script> | ||
Line 83: | Line 88: | ||
<li class="divider"></li> | <li class="divider"></li> | ||
<li id="week1" onclick="weekFilter(this)"> | <li id="week1" onclick="weekFilter(this)"> | ||
- | <a class="weeknav" href="# | + | <a class="weeknav" href="#1">Week 1</a> |
</li> | </li> | ||
<li id="week2" onclick="weekFilter(this)"> | <li id="week2" onclick="weekFilter(this)"> | ||
- | <a class="weeknav" href="# | + | <a class="weeknav" href="#2">Week 2</a> |
</li> | </li> | ||
<li id="week3" onclick="weekFilter(this)"> | <li id="week3" onclick="weekFilter(this)"> | ||
- | <a class="weeknav" href="# | + | <a class="weeknav" href="#3">Week 3</a> |
</li> | </li> | ||
</ul> | </ul> |
Revision as of 22:57, 5 March 2013