webdial

Incomplete JS port of moondial.
git clone https://code.literati.org/webdial.git
Log | Files | Refs

commit 272dc7356c5bd0db73a2c14698762a2adff28dae
parent c265022fe61335afd33b1c564e43a5d7837f3956
Author: Sean Lynch <seanl@literati.org>
Date:   Thu,  8 Sep 2011 08:04:07 -0700

Yet another attempt to avoid scrollbars

Diffstat:
Mwebdial.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/webdial.js b/webdial.js @@ -46,9 +46,9 @@ function WebDial(canvas) { } function draw() { + var w = canvas.width(); + var h = canvas.height(); var ctx = canvas[0].getContext("2d"); - var w = $("body")[0].innerWidth; - var h = $("body")[0].innerHeight; canvas[0].width = w; canvas[0].height = h; drawMap(ctx, w, h);