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

Line 17: Line 17:
 
    subDomain : "day",
 
    subDomain : "day",
 
    range : 5,
 
    range : 5,
    itemName: ['%','%'],
 
 
    cellSize: 20,
 
    cellSize: 20,
 
subDomainTextFormat: "%d",
 
subDomainTextFormat: "%d",
 
onClick: function(date, nb) {
 
onClick: function(date, nb) {
$("#onClick-placeholder").html("You just clicked <br/>on <b>" +
+
$("#onClick-placeholder").html("<b>" +
 
date + "</b> <br/>with <b>" +
 
date + "</b> <br/>with <b>" +
(nb === null ? "unknown" : nb) + "</b> items"
+
(nb === null ? "unknown" : nb)
 
);
 
);
 
}
 
}

Revision as of 22:42, 13 September 2015