m |
|||
Line 12: | Line 12: | ||
domain: "month", | domain: "month", | ||
subDomain: "x_day", | subDomain: "x_day", | ||
+ | subDomainTextFormat: "%d", | ||
+ | tooltip: true, | ||
+ | weekStartOnMonday: false, | ||
start: new Date(2016, 5), | start: new Date(2016, 5), | ||
minDate: new Date(2016, 5), | minDate: new Date(2016, 5), | ||
maxDate: new Date(2016, 8), | maxDate: new Date(2016, 8), | ||
range: 4, | range: 4, | ||
+ | legend: [1, 2, 3, 4, 5, 6, 7] | ||
cellSize: 20, | cellSize: 20, | ||
cellPadding: 5, | cellPadding: 5, | ||
domainGutter: 20, | domainGutter: 20, | ||
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", | ||
+ | |||
+ | highlight: new Date(2000, 0, 1), | ||
onClick: function(date, count) { | onClick: function(date, count) { | ||
var month = months[date.getMonth()]; | var month = months[date.getMonth()]; | ||
Line 25: | Line 31: | ||
var pid = month + "/" + day; | var pid = month + "/" + day; | ||
window.location.href = "https://2016.igem.org/Team:Paris_Saclay/Notebook/" + pid; | window.location.href = "https://2016.igem.org/Team:Paris_Saclay/Notebook/" + pid; | ||
− | + | } | |
+ | subDomainTextFormat: function(date, value) { | ||
+ | return value; | ||
+ | } | ||
}); | }); | ||
</script> | </script> |
Revision as of 15:00, 16 July 2016