Team:Uppsala/Project Notebook

From 2014.igem.org

(Difference between revisions)
Line 7: Line 7:
document.getElementById("tab2").innerHTML = '<p>hello</p>';
document.getElementById("tab2").innerHTML = '<p>hello</p>';
-
var calendar_day = [1,2,3,4,5,6,7];
+
document.getElementById("tab4").innerHTML = '<table id="calendar"><tr><td><a href="#" id = "week_incr" onclick="return false;"> < </a></td><td id="calendar_week"></td><td><a href="#" id="week_decr" onclick="return false;"> > </a></td></tr></table><table><tr><td id="calendar_day1">1</td><td id="calendar_day2">2</td><td id="calendar_day3">3</td><td id="calendar_day4">4</td><td id="calendar_day5">5</td><td id="calendar_day6">6</td><td id="calendar_day7">7</td></tr></table>';
-
 
+
-
document.getElementById("tab4").innerHTML = '<table id="calendar"><tr><td><a href="#" id = "week_incr" onclick="return false;"> < </a></td><td id="calendar_week"></td><td><a href="#" id="week_decr" onclick="return false;"> > </a></td></tr></table><table><tr><td id=calendar_day[0]>1</td><td id=calendar_day[1]>2</td><td id="calendar_day3">3</td><td id="calendar_day4">4</td><td id="calendar_day5">5</td><td id="calendar_day6">6</td><td id="calendar_day7">7</td></tr></table>';
+
</script>
</script>
Line 20: Line 18:
var calendar_dates_array = ["June 9th", "June 10th", "June 11th", "June 12th", "June 13th", "June 14th", "June 15th"];
var calendar_dates_array = ["June 9th", "June 10th", "June 11th", "June 12th", "June 13th", "June 14th", "June 15th"];
document.getElementById("calendar_week").innerHTML = "week " + calendar_week_var;
document.getElementById("calendar_week").innerHTML = "week " + calendar_week_var;
-
for(i = 0; i < 2; i++) {
+
for(i = 1; i < 8; i++) {
-
  document.getElementById(calendar_day[i]).innerHTML = "hej";
+
var str = "calendar_day" + i
 +
  document.getElementById(str).innerHTML = "hej";
}
}
</script>
</script>

Revision as of 16:00, 29 August 2014

Home

Failed to load tracking. JS is probably not enabled