summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2021-01-20 02:29:42 +0100
committeremkael <emkael@tlen.pl>2021-01-20 02:29:42 +0100
commit9b6eb6784e8c4b619e4601e8c1d5954bb82bcf7d (patch)
tree1d367d5bade779b08060dcdb7c55379f428d0298
parent6e9e95a0ddd02bc9b36fb594a2de9ab390148c16 (diff)
Style adjustmentsHEADmaster
-rw-r--r--result/krafcik.css1
-rw-r--r--result/krafcik.js5
2 files changed, 5 insertions, 1 deletions
diff --git a/result/krafcik.css b/result/krafcik.css
index be4274c..725156d 100644
--- a/result/krafcik.css
+++ b/result/krafcik.css
@@ -57,6 +57,7 @@ body {
padding: 0.5em;
font-size: 0.7em;
pointer-events: none;
+ z-index: 3000;
}
#chart-tooltip ul {
diff --git a/result/krafcik.js b/result/krafcik.js
index 77fbda1..b8e88b0 100644
--- a/result/krafcik.js
+++ b/result/krafcik.js
@@ -153,7 +153,7 @@ $(document).ready(function() {
if (tooltip.body) {
var positionY = chart.canvas.offsetTop;
var positionX = chart.canvas.offsetLeft;
- container.html(contentFunction(tooltip, data)).show();
+ container.html(contentFunction(tooltip, data));
container.css({
'top': Math.min(
positionY + tooltip.caretY,
@@ -173,6 +173,9 @@ $(document).ready(function() {
var datasets = data.datasets;
$.each(tooltip.dataPoints, function(d, dataPoint) {
var beer = datasets[dataPoint.datasetIndex].data[dataPoint.index].ref;
+ if (d > 0) {
+ content.append('<hr />');
+ }
content.append(
$('<div>').append($('<strong>').text(beer.name)),
$('<div>').append($('<span>').text(breweries[beer.brewery].name)),