From 8212f2c679e4a61eaa116147f6823a2db672c8d4 Mon Sep 17 00:00:00 2001 From: m0qui Date: Mon, 26 Mar 2018 22:14:29 +0200 Subject: [PATCH] Canvas mode for Amiga/plain mode --- index.html | 2 +- sahli.coffee | 2 ++ sahli.js | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 63b9fa1..af8265c 100644 --- a/index.html +++ b/index.html @@ -49,7 +49,7 @@
  • Z Zoom full width
  • Q Best fit for images
  • ER Zoom in steps larger/smaller
  • -
  • 89 Incease/decrease font size by 2 (Amiga/plain mode)
  • +
  • 89 Incease/decrease font size by 2 (Amiga/plain mode), 0 for full width
  • C "panel" view toggle
  • UpDownPageupPagedown Move about by line/page
  • HomeEnd Move to top/bottom (no zoom reset)
  • diff --git a/sahli.coffee b/sahli.coffee index 043bc09..2bc1dba 100644 --- a/sahli.coffee +++ b/sahli.coffee @@ -416,6 +416,8 @@ class @Sahli @increaseFont($('pre'), -2) when @keycode '9' @increaseFont($('pre'), 2) + when @keycode '0' + $('pre').css("font-size", "2.5vw"); when 40 # down @moveline 1 when 38 # up diff --git a/sahli.js b/sahli.js index 45def1d..f391a42 100644 --- a/sahli.js +++ b/sahli.js @@ -487,6 +487,8 @@ l__________/__________|___|______l__________j_____j return _this.increaseFont($('pre'), -2); case _this.keycode('9'): return _this.increaseFont($('pre'), 2); + case _this.keycode('0'): + return $('pre').css("font-size", "2.5vw"); case 40: return _this.moveline(1); case 38: