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

 
(3 intermediate revisions by the same user not shown)
Line 38: Line 38:
 
    cellSize: 32,
 
    cellSize: 32,
 
subDomainTextFormat: "%d",
 
subDomainTextFormat: "%d",
 +
displayLegend: false,
 
onClick: function(date, nb) {
 
onClick: function(date, nb) {
 
$("#onClick-placeholder").html("<b>" +
 
$("#onClick-placeholder").html("<b>" +
Line 43: Line 44:
 
);
 
);
 
var message = ""
 
var message = ""
$.each(notes[month[date.getMonth()]+(date.getDate())], function( index, value ) {
+
var key = month[date.getMonth()]+(date.getDate())
  message += value+"<br>";
+
if (key in notes){
  });
+
$.each(notes[key], function( index, value ) {
$("#notes-table").html("<li>" + message
+
  message += "<li>"+value+"</li>";
+ "</li>"
+
  });}
 +
$("#notes-table").html(message
 
);
 
);
 
}
 
}

Latest revision as of 23:53, 13 September 2015