Template:Team:KULeuven/Common/CategoryCalendar
From 2009.igem.org
(Difference between revisions)
(4 intermediate revisions not shown) | |||
Line 7: | Line 7: | ||
function drawCals() { | function drawCals() { | ||
var data = retrieveDatesHash(); | var data = retrieveDatesHash(); | ||
- | var cals = "<table | + | var cals = "<center><table cellspacing=30>"; |
- | cals += "<tr>"; | + | 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 += "<td>" + makeCalendar(i,2009,data) + "</td>"; | ||
} | } | ||
cals += "</tr>"; | cals += "</tr>"; | ||
- | cals += "</table>"; | + | 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