From 896b922865cd9b645e2cbee2d2d81fb97cfb906d Mon Sep 17 00:00:00 2001 From: Marc Durdin Date: Thu, 23 Sep 2021 13:51:54 +1000 Subject: [PATCH] chore(developer): refactoring - minor --- windows/src/developer/TIKE/xml/kmw/index.html | 14 +--- .../src/developer/TIKE/xml/kmw/packages.html | 80 +------------------ .../src/developer/TIKE/xml/kmw/packages.js | 69 ++++++++++++++++ 3 files changed, 73 insertions(+), 90 deletions(-) create mode 100644 windows/src/developer/TIKE/xml/kmw/packages.js diff --git a/windows/src/developer/TIKE/xml/kmw/index.html b/windows/src/developer/TIKE/xml/kmw/index.html index 3a5b7bbfc8..b1609d13b7 100644 --- a/windows/src/developer/TIKE/xml/kmw/index.html +++ b/windows/src/developer/TIKE/xml/kmw/index.html @@ -50,14 +50,6 @@ - Install packages @@ -75,11 +67,9 @@

- - - - + + diff --git a/windows/src/developer/TIKE/xml/kmw/packages.html b/windows/src/developer/TIKE/xml/kmw/packages.html index b5eec92176..191032cec5 100644 --- a/windows/src/developer/TIKE/xml/kmw/packages.html +++ b/windows/src/developer/TIKE/xml/kmw/packages.html @@ -11,15 +11,9 @@ - - - Keyman Developer Package Installation - + @@ -48,76 +42,6 @@ [Test Online].

- + diff --git a/windows/src/developer/TIKE/xml/kmw/packages.js b/windows/src/developer/TIKE/xml/kmw/packages.js new file mode 100644 index 0000000000..c83baacfdb --- /dev/null +++ b/windows/src/developer/TIKE/xml/kmw/packages.js @@ -0,0 +1,69 @@ +// The following dynamic script will register each of the additional packages +var packagesJSON = ''; + +function ajaxRequest(){ + var activexmodes=["Msxml2.XMLHTTP", "Microsoft.XMLHTTP"] //activeX versions to check for in IE + if (window.ActiveXObject) { //Test for support for ActiveXObject in IE first (as XMLHttpRequest in IE7 is broken) + for (var i=0; i