webdial

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

commit c265022fe61335afd33b1c564e43a5d7837f3956
parent 551b7bd1c98093ae6886a8c933cd7d75de3f5276
Author: Sean Lynch <seanl@literati.org>
Date:   Thu,  8 Sep 2011 07:59:14 -0700

Try more to avoid scrollbars

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

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