Team:Cornell/Sandbox/notebook

From 2012.igem.org

(Difference between revisions)
Line 7: Line 7:
<script>
<script>
function load() {
function load() {
-
alert("hello");
 
var num = 3;
var num = 3;
-
for(var i = 0; i < num; i++) {
+
if(document.location == "http://2012.igem.org/Team:Cornell/Sandbox/notebook){
-
if(document.location == "http://2012.igem.org/Team:Cornell/Sandbox/notebook#" + i){
+
document.getElementById("week1entry").style.display = 'block';
-
alert(document.location + "hello");
+
alert("normal");
-
document.getElementById("week" + i + "entry").style.display = 'block';
+
}
 +
else {
 +
for(var i = 0; i < num; i++) {
 +
if(document.location == "http://2012.igem.org/Team:Cornell/Sandbox/notebook#" + i){
 +
alert("http://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

Notebook

Filter by subteam:
show all

only
only
only
only
only
only