diff --git a/www/index.html b/www/index.html index beaced59..03eb7ccc 100644 --- a/www/index.html +++ b/www/index.html @@ -91,11 +91,9 @@

Please read this important information

- DISCLAIMER: Please be aware that Kiwix works with offline archives, so information in any archive (ZIM - file) you download will only be as up-to-date as the archive itself. To get updated info, you will need to - download a new archive. Information in archives is free, open source and provided by volunteers.
- Kiwix gives no guarantee as to the accuracy of information contained in archives you access with this - app. You should not rely on it as your only source of information for making important decisions. + DISCLAIMER: Please be aware that Kiwix works with offline archives. To get updated info, you will need to + download a new archive periodically. Information in archives is free, open source and provided by volunteers.
+ Kiwix gives no guarantee as to the accuracy of information in the archives you access with this app.

@@ -283,11 +281,9 @@

- DISCLAIMER: Please be aware that Kiwix works entirely offline, so information in any archive (ZIM - file) you download will only be as up-to-date as the archive itself. To get updated info, you will need to - download a new archive. Information in archives is free, open source and provided by volunteers.
- Kiwix gives no guarantee as to the accuracy of information contained in archives you access with this - app. You should not rely on it as your only source of information for making important decisions. + DISCLAIMER: Please be aware that Kiwix works with offline archives. To get updated info, you will need to + download a new archive periodically. Information in archives is free, open source and provided by volunteers.
+ Kiwix gives no guarantee as to the accuracy of information in the archives you access with this app.


@@ -324,6 +320,7 @@ Alternatively, visit https://download.kiwix.org/zim/ using a regular computer. Currently only Wikimedia contents (ZIM files in wiki* subdirectories) and Stackexchange have been tested fully. There are known bugs when reading some other content, and dynamic content is not supported in jQuery mode. + You may need to switch the app to the experimental PWA mode (see Expert Settings in configuration) to access dynamic content.

If you have enough space, you can put several archives on your device storage. If you download the content @@ -339,12 +336,20 @@ cable to copy the ZIM archive(s) to an accessible location on your device, such as the SD card or the main storage area if there is enough space there.

-

Step 3: open this app, go to the "Configure" menu and select your ZIM file

+

Step 3: go to the "Configure" menu and select your ZIM file (or double-click / drag-and-drop your file into the app)

- On the Configuration page, tap the "Select storage" button. If you have downloaded more than one archive, or you have a split ZIM archive - consisting of several 2GB files, then you will need to pick the folder that contains these files. If you have just one unsplit ZIM - archive, you can instead pick the file directly, using the respective buttons on the - Configuration page (note that these buttons only appear after you tap "Select Storage"). + On the Configuration page, tap the "Select storage" button. If you have downloaded more than one archive, or you have a + split ZIM archive consisting of several 2GB files, then you will need to pick the folder that contains these files + or else (in older browsers) you will need to select all the split parts. If you have just one unsplit ZIM archive, you + can instead pick the file directly, using the respective buttons on the + Configuration page (note that these buttons + only appear after you tap "Select Storage"). In most modern contexts the archive will be remembered on next launch + (Firefox and IE11 are exceptions). +

+

+ Alternatively, in the UWP app you can simply double-click the ZIM file to launch it in the app, even if the app + is closed (your choice will be remembered on next launch). You can also drag-and-drop your ZIM file into the app, + but it may not be remembered on next launch in all contexts (try it if this method interests you!).

Step 4: enjoy your content offline!

Changes in 0.9

diff --git a/www/js/app.js b/www/js/app.js index 9a34e861..786ff44b 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -1564,9 +1564,13 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'cache', 'images', 'sett } else if (protocol === 'file:') { message += "\n\nYou seem to be opening kiwix-js with the file:// protocol. You should open it through a web server : either through a local one (http://localhost/...) or through a remote one (but you need SSL : https://webserver/...)"; } else if (protocol === 'ms-appx-web:') { - message = 'This UWP app uses locally packaged code by default.\n' + - 'To enable the Service Worker we need to switch to PWA mode.\n\n' + - 'WARNING: This will attempt to access the server: ' + params.PWAServer; + message = 'This UWP app uses locally packaged code by default. ' + + 'To enable the Service Worker we need to switch to PWA mode, ' + + 'which requires one-time access to our secure server to cache the PWA code.\n\n' + + 'The app will be able to run offline in PWA mode, but will auto-update ' + + 'periodically when online as per the Service Worker spec.\n\n' + + 'You can switch back any time by toggling "Allow Internet access?" off.\n\n' + + 'WARNING: This will attempt to access the following server: \n' + params.PWAServer; goPWA = true; } if (goPWA) { @@ -3680,6 +3684,9 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'cache', 'images', 'sett }); }); }); + // For TED ZIMs, the initial video div height is set incorectly, so we correct it + var videoWrapper = iframe.getElementById('video-wrapper'); + if (videoWrapper) videoWrapper.style.height = 'auto'; } /** @@ -3712,7 +3719,7 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'cache', 'images', 'sett // Create the new container and menu var d = doc.createElement('DIV'); d.id = 'kiwixCCMenu'; - d.setAttribute('style', 'margin-top: 1em; text-align: left;'); + d.setAttribute('style', 'margin-top: 1em; text-align: left; position: relative;'); d.innerHTML = 'Please select subtitle language: ' + newKiwixCCMenu; mediaElement.parentElement.insertBefore(d, mediaElement.nextSibling); // Add event listener to extract the text track from the ZIM and insert it into the media element when the user selects it