fedora_elections/templates/results.html | 11 +++++++++++
1 file changed, 11 insertions(+)
New commits:
commit d56407e43844cf4622e709bf4a75b3967e61348d
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Sat Nov 29 19:33:58 2014 +0100
Add a mention that there is more info when hovering over a bar of the graph
diff --git a/fedora_elections/templates/results.html
b/fedora_elections/templates/results.html
index 3c436b7..7f57b08 100644
--- a/fedora_elections/templates/results.html
+++ b/fedora_elections/templates/results.html
@@ -154,6 +154,17 @@
}).appendTo("body").fadeIn(200);
}
+ // Add 'details' label to the charts.
+ var placeHolderCanvas;
+ var placeHolderCanvasContext;
+ placeHolderCanvas = $("#placeholder canvas")[0];
+ if(placeHolderCanvas != null){
+ placeHolderCanvasContext = placeHolderCanvas.getContext("2d")
+ placeHolderCanvasContext.fillStyle = "#545454";
+ placeHolderCanvasContext.font = "8pt Arial";
+ placeHolderCanvasContext.fillText("Hover Over A Bar For Additional
Details", 25, 30);
+ };
+
$("#placeholder").bind("plothover", function (event, pos,
item) {
$("#x").text(pos.x);
$("#y").text(pos.y);
Show replies by date