This application needs a ZIM archive to work. You can get one from the download links panel.
-
+
If you have a single (unsplit) ZIM archive, use the first button.
For a split archive (.zimaa, .zimab, etc.) or multiple archives, use the second button.
+
+
+ Please choose the location of your ZIM archive.
+ For a split archive (.zimaa, .zimab, etc.) you must select all the split parts.
+
+
diff --git a/bin/Release/AppX/www/js/app.js b/bin/Release/AppX/www/js/app.js
index 4f6caa8b..179d91a9 100644
--- a/bin/Release/AppX/www/js/app.js
+++ b/bin/Release/AppX/www/js/app.js
@@ -429,6 +429,15 @@ define(['jquery', 'zimArchiveLoader', 'util', 'uiUtil', 'cookies', 'abstractFile
if (params.localStorage && !params.pickedFolder && !params.pickedFile) {
params.pickedFolder = params.localStorage;
}
+ if (typeof Windows === 'undefined') {
+ //If not UWP, display legacy File Select
+ document.getElementById('archiveFile').style.display = "none";
+ document.getElementById('archiveFiles').style.display = "none";
+ document.getElementById('UWPInstructions').style.display = "none";
+ document.getElementById('instructions').style.display = "inline";
+ document.getElementById('archiveFilesLegacy').style.display = "inline";
+ $('#archiveFilesLegacy').on('change', setLocalArchiveFromFileSelect)
+ }
return false;
});
$('#btnAbout').on('click', function (e) {
@@ -1124,6 +1133,10 @@ define(['jquery', 'zimArchiveLoader', 'util', 'uiUtil', 'cookies', 'abstractFile
*/
function displayFileSelect() {
$('#openLocalFiles').show();
+ if (typeof Windows === 'undefined') {
+ //If not UWP, display legacy File Select
+ $('#btnConfigure').click();
+ }
//TODO - check if this is necessary or if it causes the archiveList change event to fire
//Make archive list combo box fit the number of files
//var comboArchiveList = document.getElementById('archiveList');
@@ -1221,7 +1234,7 @@ define(['jquery', 'zimArchiveLoader', 'util', 'uiUtil', 'cookies', 'abstractFile
* Sets the localArchive from the File selects populated by user
*/
function setLocalArchiveFromFileSelect() {
- setLocalArchiveFromFileList(document.getElementById('archiveFiles').files);
+ setLocalArchiveFromFileList(document.getElementById('archiveFilesLegacy').files);
}
/**
diff --git a/bin/Release/KiwixWebApp.build.appxrecipe b/bin/Release/KiwixWebApp.build.appxrecipe
index 1961c234..4099f4b0 100644
--- a/bin/Release/KiwixWebApp.build.appxrecipe
+++ b/bin/Release/KiwixWebApp.build.appxrecipe
@@ -1165,7 +1165,7 @@
www\js\MathJax\extensions\a11y\mathmaps\.htaccess
-
+ resources.pritrue
diff --git a/bin/Release/resources.pri b/bin/Release/ReverseMap/resources.pri
similarity index 62%
rename from bin/Release/resources.pri
rename to bin/Release/ReverseMap/resources.pri
index e0f43f7e..246cb42a 100644
Binary files a/bin/Release/resources.pri and b/bin/Release/ReverseMap/resources.pri differ
diff --git a/bld/Release/KiwixWebApp.jsproj.FileListAbsolute.txt b/bld/Release/KiwixWebApp.jsproj.FileListAbsolute.txt
index 8ffe1aff..38506ae7 100644
--- a/bld/Release/KiwixWebApp.jsproj.FileListAbsolute.txt
+++ b/bld/Release/KiwixWebApp.jsproj.FileListAbsolute.txt
@@ -46,4 +46,4 @@ C:\Users\geoff\Source\Repos\kiwix-js-windows\bld\Release\qualifiers.txt.intermed
C:\Users\geoff\Source\Repos\kiwix-js-windows\bld\Release\MultipleQualifiersPerDimensionFound.txt
C:\Users\geoff\Source\Repos\kiwix-js-windows\bld\Release\ProjectArchitectures.txt
C:\Users\geoff\Source\Repos\kiwix-js-windows\bld\Release\KiwixWebApp.jsproj.CoreCompileInputs.cache
-C:\Users\geoff\Source\Repos\kiwix-js-windows\bin\Release\resources.pri
+C:\Users\geoff\Source\Repos\kiwix-js-windows\bin\Release\ReverseMap\resources.pri
diff --git a/www/index.html b/www/index.html
index 684a55b3..b079b456 100644
--- a/www/index.html
+++ b/www/index.html
@@ -275,12 +275,18 @@
This application needs a ZIM archive to work. You can get one from the download links panel.
-
+
If you have a single (unsplit) ZIM archive, use the first button.
For a split archive (.zimaa, .zimab, etc.) or multiple archives, use the second button.
+
+
+ Please choose the location of your ZIM archive.
+ For a split archive (.zimaa, .zimab, etc.) you must select all the split parts.
+
+
diff --git a/www/js/app.js b/www/js/app.js
index 4f6caa8b..179d91a9 100644
--- a/www/js/app.js
+++ b/www/js/app.js
@@ -429,6 +429,15 @@ define(['jquery', 'zimArchiveLoader', 'util', 'uiUtil', 'cookies', 'abstractFile
if (params.localStorage && !params.pickedFolder && !params.pickedFile) {
params.pickedFolder = params.localStorage;
}
+ if (typeof Windows === 'undefined') {
+ //If not UWP, display legacy File Select
+ document.getElementById('archiveFile').style.display = "none";
+ document.getElementById('archiveFiles').style.display = "none";
+ document.getElementById('UWPInstructions').style.display = "none";
+ document.getElementById('instructions').style.display = "inline";
+ document.getElementById('archiveFilesLegacy').style.display = "inline";
+ $('#archiveFilesLegacy').on('change', setLocalArchiveFromFileSelect)
+ }
return false;
});
$('#btnAbout').on('click', function (e) {
@@ -1124,6 +1133,10 @@ define(['jquery', 'zimArchiveLoader', 'util', 'uiUtil', 'cookies', 'abstractFile
*/
function displayFileSelect() {
$('#openLocalFiles').show();
+ if (typeof Windows === 'undefined') {
+ //If not UWP, display legacy File Select
+ $('#btnConfigure').click();
+ }
//TODO - check if this is necessary or if it causes the archiveList change event to fire
//Make archive list combo box fit the number of files
//var comboArchiveList = document.getElementById('archiveList');
@@ -1221,7 +1234,7 @@ define(['jquery', 'zimArchiveLoader', 'util', 'uiUtil', 'cookies', 'abstractFile
* Sets the localArchive from the File selects populated by user
*/
function setLocalArchiveFromFileSelect() {
- setLocalArchiveFromFileList(document.getElementById('archiveFiles').files);
+ setLocalArchiveFromFileList(document.getElementById('archiveFilesLegacy').files);
}
/**