Template:Team:KULeuven/Common/CategoryCalendar

From 2009.igem.org

(Difference between revisions)
(New page: <html> <script type="text/javascript" src="https://2009.igem.org/wiki/index.php?title=Template:Team:KULeuven/Common/JSLibrary&action=raw"></script> <script type="text/javascript"> <!-- ...)
 
(8 intermediate revisions not shown)
Line 6: Line 6:
     function drawCals() {
     function drawCals() {
-
         x = retrieveDatesHash();
+
         var data = retrieveDatesHash();
-
         var s = "";
+
         var cals = "<center><table cellspacing=30>";
-
         for(var i in x) {
+
         cals += "<tr valign='top'>";
-
            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 += "<td>" + makeCalendar(i,2009,data) + "</td>";
         }
         }
 +
        cals += "</tr>";
 +
        cals += "</table></center>";
-
         var obj = document.getElementById('CalendarInsertionPoint');
+
         if(data.length > 0) {
-
        obj.innerHTML = s;
+
            var obj = document.getElementById('CalendarInsertionPoint');
 +
            obj.innerHTML = "<h2>Pages from the notebook in this category</h2>" + cals;
 +
        }
     }
     }
-->
-->
</script>
</script>
-
<div id='CalendarInsertionPoint'>123</div>
+
 
 +
<div id='CalendarInsertionPoint'></div>

Latest revision as of 14:02, 12 July 2009