From 8d27f85e3904bf2f5fbd75c46c64fa164262d7b5 Mon Sep 17 00:00:00 2001 From: Joshua Horton Date: Wed, 31 May 2017 08:36:38 +0700 Subject: [PATCH] Fixed up attachType:'manual' code and performed some requested refactoring. --- web/samples/uncompiled - manual.html | 111 +++++++++++++++++++++++++++ web/source/keymanweb.js | 110 +++++++++++++------------- web/source/kmwbase.js | 16 +++- 3 files changed, 177 insertions(+), 60 deletions(-) create mode 100644 web/samples/uncompiled - manual.html diff --git a/web/samples/uncompiled - manual.html b/web/samples/uncompiled - manual.html new file mode 100644 index 0000000000..fa2c0c6227 --- /dev/null +++ b/web/samples/uncompiled - manual.html @@ -0,0 +1,111 @@ + + + + + + + + + + + + + + + KeymanWeb Sample Page - Uncompiled Source + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

KeymanWeb Sample Page - Uncompiled Source

+ +
+ +
+ +

Type in your language in this text area:

+ + +

or in this input field:

+ + + +

Add a keyboard by keyboard name:

+ + + +

Add a keyboard by ISO 639 language code:

+ + + +

Add a keyboard by language name:

+ + + + +

Return to testing home page

+
+ + + + + diff --git a/web/source/keymanweb.js b/web/source/keymanweb.js index 915a338f9e..e177d9d3ad 100644 --- a/web/source/keymanweb.js +++ b/web/source/keymanweb.js @@ -1022,13 +1022,11 @@ * Description Save list of inputs for non-touch devices (desktop browsers) */ keymanweb.setupDesktopPage = function() { - for(var k=0; k<2; k++) { - var ipList=document.getElementsByTagName(k==0?'INPUT':'TEXTAREA'); - for(var n=0;n