aboutsummaryrefslogtreecommitdiffstats
path: root/web/nms.gathering.org/nms2/js/nms.js
diff options
context:
space:
mode:
authorKristian Lyngstol <kristian@bohemians.org>2015-04-13 21:39:02 +0200
committerKristian Lyngstol <kristian@bohemians.org>2015-04-13 21:39:02 +0200
commitccb0325bb1691faaf009523f5513db009c640a61 (patch)
tree7b4d375557c5d98d15df934ddbf586e26d4c1c74 /web/nms.gathering.org/nms2/js/nms.js
parentfc20ccf9b8abb7bbff5f329181b0492cc9133aec (diff)
Adjust "now" font-size.
Diffstat (limited to 'web/nms.gathering.org/nms2/js/nms.js')
-rw-r--r--web/nms.gathering.org/nms2/js/nms.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/web/nms.gathering.org/nms2/js/nms.js b/web/nms.gathering.org/nms2/js/nms.js
index bd6f963..2cfd4fb 100644
--- a/web/nms.gathering.org/nms2/js/nms.js
+++ b/web/nms.gathering.org/nms2/js/nms.js
@@ -821,16 +821,16 @@ function drawSwitches()
function drawNow()
{
if (nms.now != false) {
- dr.top.ctx.font = Math.round(nms.fontSize * canvas.scale) + "px " + nms.fontFace;
- dr.top.ctx.clearRect(0,0,Math.floor(200 * canvas.scale),Math.floor(30 * canvas.scale));
+ dr.top.ctx.font = Math.round(2 * nms.fontSize * canvas.scale) + "px " + nms.fontFace;
+ dr.top.ctx.clearRect(0,0,Math.floor(400 * canvas.scale),Math.floor(60 * canvas.scale));
dr.top.ctx.fillStyle = "white";
dr.top.ctx.strokeStyle = "black";
- dr.top.ctx.lineWidth = Math.round(1 * canvas.scale);
+ dr.top.ctx.lineWidth = Math.round(2 * canvas.scale);
if (canvas.scale < 0.7) {
- dr.top.ctx.lineWidth = 0.5;
+ dr.top.ctx.lineWidth = 2;
}
- dr.top.ctx.strokeText("Now: " + nms.now, 0 + margin.text, 20 * canvas.scale);
- dr.top.ctx.fillText("Now: " + nms.now, 0 + margin.text, 20 * canvas.scale);
+ dr.top.ctx.strokeText("Now: " + nms.now, 0 + margin.text, 30 * canvas.scale);
+ dr.top.ctx.fillText("Now: " + nms.now, 0 + margin.text, 30 * canvas.scale);
}
}
/*