Template:Team:KULeuven/Common/CategoryCalendar

From 2009.igem.org

(Difference between revisions)
Line 6: Line 6:
     function drawCals() {
     function drawCals() {
-
         x = retrieveDatesHash();
+
         var data = retrieveDatesHash();
-
         var s = "";
+
         var cals = "";
-
        for(var i in x) {
 
-
            s = s + i + " -> " + x[i] + "<br>";
 
-
        }
 
-
 
-
        s = "";
 
         for(var i = 6; i <= 9; i++) {
         for(var i = 6; i <= 9; i++) {
-
             s += makeCalendar(i,2009,x);
+
             cals += makeCalendar(i,2009,data);
         }
         }
         var obj = document.getElementById('CalendarInsertionPoint');
         var obj = document.getElementById('CalendarInsertionPoint');
-
         obj.innerHTML = s;
+
         obj.innerHTML = cals;
     }
     }
-->
-->
</script>
</script>
<div id='CalendarInsertionPoint'>Use this on a category page</div>
<div id='CalendarInsertionPoint'>Use this on a category page</div>

Revision as of 10:31, 12 July 2009

Use this on a category page