Difference between revisions of "Template:Waterloo/Pages/cal-heatmap-test"

Line 5: Line 5:
 
<script src="https://2015.igem.org/wiki/index.php?title=Template:Waterloo/JS/days&action=raw&ctype=text/javascript"></script>
 
<script src="https://2015.igem.org/wiki/index.php?title=Template:Waterloo/JS/days&action=raw&ctype=text/javascript"></script>
 
<script src="https://2015.igem.org/wiki/index.php?title=Template:Waterloo/JS/notes&action=raw&ctype=text/javascript"></script>
 
<script src="https://2015.igem.org/wiki/index.php?title=Template:Waterloo/JS/notes&action=raw&ctype=text/javascript"></script>
 +
<script>
 +
var month = new Array();
 +
month[0] = "Jan";
 +
month[1] = "Feb";
 +
month[2] = "Mar";
 +
month[3] = "Apr";
 +
month[4] = "May";
 +
month[5] = "Jun";
 +
month[6] = "Jul";
 +
month[7] = "Aug";
 +
month[8] = "Sep";
 +
month[9] = "Oct";
 +
month[10] = "Nov";
 +
month[11] = "Dec";
 +
</script>
 
<link rel="stylesheet" href="https://2015.igem.org/wiki/index.php?title=Template:Waterloo/CSS/cal-heatmap&action=raw&ctype=text/css"></link>
 
<link rel="stylesheet" href="https://2015.igem.org/wiki/index.php?title=Template:Waterloo/CSS/cal-heatmap&action=raw&ctype=text/css"></link>
  
Line 10: Line 25:
 
<div>
 
<div>
 
<h1 id="onClick-placeholder"></h1>
 
<h1 id="onClick-placeholder"></h1>
 +
<div id="notes-table"></div>
 
</div>
 
</div>
 
<script type="text/javascript">
 
<script type="text/javascript">
Line 25: Line 41:
 
$("#onClick-placeholder").html("<b>" +
 
$("#onClick-placeholder").html("<b>" +
 
date.toDateString() + "</b>"
 
date.toDateString() + "</b>"
 +
);
 +
$("#notes-table").html("<b>" +
 +
notes[month[date.getMonth()]+date.getDay()] + "</b>"
 
);
 
);
 
}
 
}

Revision as of 23:19, 13 September 2015