Line 40: | Line 40: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
var cal = new CalHeatMap(); | var cal = new CalHeatMap(); | ||
+ | var months = ["January", "February", "March", "April", "May, ", "June", "July, "August", "September", "October", "November", "December"]; | ||
cal.init({ | cal.init({ | ||
domain: "month", | domain: "month", | ||
Line 49: | Line 50: | ||
data: "https://2016.igem.org/Team:Paris_Saclay/Notebook/calendar-datajson?action=raw", | data: "https://2016.igem.org/Team:Paris_Saclay/Notebook/calendar-datajson?action=raw", | ||
onClick: function(date, count) { | onClick: function(date, count) { | ||
− | var month = date.getMonth() | + | var month = months[date.getMonth()]; |
var day = date.getDate(); | var day = date.getDate(); | ||
var pid = month + "/" + day; | var pid = month + "/" + day; |
Revision as of 16:59, 27 June 2016