From 13e1f51b47fdb61f570cbd8a381e3be9cc1ab550 Mon Sep 17 00:00:00 2001 From: BigEd Date: Sat, 27 Nov 2010 13:54:31 +0000 Subject: [PATCH] kiosk mode: add link to user guide, tweak help text and add alphabetic zoom controls --- index.html | 6 +++--- kioskWires.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index 4bfbcdd..d5b9370 100644 --- a/index.html +++ b/index.html @@ -62,11 +62,11 @@ lots of RAM. If you have trouble, please check com

-Hit '>' to zoom in, '<' to zoom out +Keyboard controls: 'z' to zoom in, 'x' to zoom out, 'n' to step the simulation.
-Left-click and drag to scroll around +Mouse controls: Left-click and drag to scroll around (when you're zoomed in.)
-Enter your own program into the array of RAM +More information in the
User Guide.

diff --git a/kioskWires.js b/kioskWires.js index d943b7d..b9c2ff7 100644 --- a/kioskWires.js +++ b/kioskWires.js @@ -104,9 +104,9 @@ function setup_part3(){ function handleKey(e){ var c = e.charCode; c = String.fromCharCode(c); - if('<>?np'.indexOf(c)==-1) return; - if(c=='<' && zoom>1) setZoom(zoom/1.2); - else if(c=='>' && zoom?np'.indexOf(c)==-1) return; + if((c=='x' || c=='<') && zoom>1) setZoom(zoom/1.2); + else if((c=='z' || c=='>') && zoom