Difference between revisions of "Template:Waterloo/Pages/cal-heatmap-test"
Line 19: | Line 19: | ||
cellSize: 20, | cellSize: 20, | ||
subDomainTextFormat: "%d", | subDomainTextFormat: "%d", | ||
+ | onClick: function(date, nb) { | ||
+ | $("#onClick-placeholder").html("You just clicked <br/>on <b>" + | ||
+ | date + "</b> <br/>with <b>" + | ||
+ | (nb === null ? "unknown" : nb) + "</b> items" | ||
+ | ); | ||
+ | } | ||
}); | }); | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 22:38, 13 September 2015