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() { | ||
- | + | var data = retrieveDatesHash(); | |
- | var | + | var cals = "<center><table cellspacing=30>"; |
- | + | cals += "<tr valign='top'>"; | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
for(var i = 6; i <= 9; i++) { | for(var i = 6; i <= 9; i++) { | ||
- | + | cals += "<td>" + makeCalendar(i,2009,data) + "</td>"; | |
} | } | ||
+ | cals += "</tr>"; | ||
+ | cals += "</table></center>"; | ||
- | var obj = document.getElementById('CalendarInsertionPoint'); | + | if(data.length > 0) { |
- | + | var obj = document.getElementById('CalendarInsertionPoint'); | |
+ | obj.innerHTML = "<h2>Pages from the notebook in this category</h2>" + cals; | ||
+ | } | ||
} | } | ||
--> | --> | ||
</script> | </script> | ||
- | <div id='CalendarInsertionPoint'> | + | |
+ | <div id='CalendarInsertionPoint'></div> |
Latest revision as of 14:02, 12 July 2009