Team:Uppsala/Project Notebook

From 2014.igem.org

(Difference between revisions)
Line 18: 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 = 1; i < 8; i++) {
+
for(i = 0; i < 7; i++) {
-
  var str = "calendar_day" + i
+
  var str = "calendar_day" + (i+1)
-
  document.getElementById(str).innerHTML = calendar_dates_array[i-1];
+
  document.getElementById(str).innerHTML = calendar_dates_array[i];
}
}
</script>
</script>

Revision as of 16:04, 29 August 2014

Home

Failed to load tracking. JS is probably not enabled