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; | var num = 3; | ||
- | for(var i = 0; i < num; i++) { | + | if(document.location == "https://2012.igem.org/Team:Cornell/Sandbox/notebook){ |
- | + | document.getElementById("week1entry").style.display = 'block'; | |
- | + | alert("normal"); | |
- | + | } | |
+ | else { | ||
+ | for(var i = 0; i < num; i++) { | ||
+ | if(document.location == "https://2012.igem.org/Team:Cornell/Sandbox/notebook#" + i){ | ||
+ | alert("https://2012.igem.org/Team:Cornell/Sandbox/notebook#" + i); | ||
+ | document.getElementById("week" + i + "entry").style.display = 'block'; | ||
+ | } | ||
} | } | ||
} | } | ||
Line 155: | Line 160: | ||
</div> | </div> | ||
<!-- -------------------Notebook entries------------------- --!> | <!-- -------------------Notebook entries------------------- --!> | ||
- | <div id="week1entry" class="row last-ele week"> | + | <div id="week1entry" class="row last-ele week" style="display: none"> |
<div class="twelve columns"> | <div class="twelve columns"> | ||
<h3 class="centered">Week 1</h3> | <h3 class="centered">Week 1</h3> |
Revision as of 23:17, 5 March 2013