diff --git a/www/-/s/style-mobile.css b/www/-/s/style-mobile.css index 7c148168..fae02720 100644 --- a/www/-/s/style-mobile.css +++ b/www/-/s/style-mobile.css @@ -3262,7 +3262,7 @@ sub, sup { } .content table caption { - display: table-caption + display: flex; } .content table tbody { diff --git a/www/index.html b/www/index.html index 2c84526a..6ff2fce4 100644 --- a/www/index.html +++ b/www/index.html @@ -293,29 +293,29 @@ If your Internet access is expensive, slow, unreliable, insecure or censored, you can still gain offline access to a huge repository of knowledge and culture.
-- To use this app, you will need to download one or more archives (called ZIM archives) from the Kiwix website. You will then have - offline access to Wikipedia, Wiktionary, Wikivoyage and many other sources even if you are undertaking a long plane journey, hiking, - and travelling or living in areas with weak Internet access. -
-- You can search through article titles and read any of these articles completely offline. -
-- You can have the entire content of Wiktionary or Wikipedia in your language (including the images) in your pocket. -
-- Offline archives use the OpenZIM format, but note that this app has been only tested extensively on - Wikipedia-related archives (e.g., Wikipedia, Wikivoyage, Wikimed, Wiktionary). -
-
- On some Wikivoyage (English and German) pages
- you will see a map location marker: . Tap this icon to open
- the Maps app at the selected location. This will work offline if you have downloaded the map for the relevant country
- in the Windows Settings for Offline Maps.
-
+ To use this app, you will need to download one or more archives (called ZIM archives) from the Kiwix website. You will then have + offline access to Wikipedia, Wiktionary, Wikivoyage and many other sources even if you are undertaking a long plane journey, hiking, + and travelling or living in areas with weak Internet access. +
++ You can search through article titles and read any of these articles completely offline. +
++ You can have the entire content of Wiktionary or Wikipedia in your language (including the images) in your pocket. +
++ Offline archives use the OpenZIM format, but note that this app has been only tested extensively on + Wikipedia-related archives (e.g., Wikipedia, Wikivoyage, Wikimed, Wiktionary). +
+
+ On some Wikivoyage (English and German) pages
+ you will see a map location marker: . Tap this icon to open
+ the Maps app at the selected location. This will work offline if you have downloaded the map for the relevant country
+ in the Windows Settings for Offline Maps.
+
You can browse the Kiwix repository on the Configuration page, and it will provide instructions according to the type of file you download. @@ -669,6 +669,11 @@ Enable opening articles in a separate browser tab (slightly increases app's memory usage) + diff --git a/www/js/app.js b/www/js/app.js index 319283eb..d7889a3d 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -83,7 +83,6 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'cache', 'images', 'cook ToCList.style.maxHeight = ~~(window.innerHeight * 0.75) + 'px'; ToCList.style.marginLeft = ~~(window.innerWidth / 2) - ~~(window.innerWidth * 0.16) + 'px'; } - removePageMaxWidth(); if (window.outerWidth <= 470) { document.getElementById('dropup').classList.remove('col-xs-4'); document.getElementById('dropup').classList.add('col-xs-3'); @@ -364,6 +363,7 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'cache', 'images', 'cook btnContinue.disabled = false; btnContinue.innerHTML = "Continue"; var printModalContent = document.getElementById('print-modal-content'); + openAllSections(true); printModalContent.classList.remove('dark'); var determinedTheme = params.cssUITheme; determinedTheme = determinedTheme == 'auto' ? cssUIThemeGetOrSet('auto', true) : determinedTheme; @@ -1283,6 +1283,11 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'cache', 'images', 'cook docStyle.margin = "0 auto"; } } + document.getElementById('openAllSectionsCheck').addEventListener('click', function (e) { + params.openAllSections = this.checked; + cookies.setItem('openAllSections', params.openAllSections, Infinity); + openAllSections(); + }); $('input:radio[name=useMathJax]').on('click', function (e) { params.useMathJax = /true/i.test(this.value); cookies.setItem('useMathJax', params.useMathJax, Infinity); @@ -2734,6 +2739,8 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'cache', 'images', 'cook removePageMaxWidth(); setupTableOfContents(); listenForSearchKeys(); + openAllSections(); + setupHeadings(); // The content is ready : we can hide the spinner setTab(); checkToolbar(); @@ -3026,9 +3033,12 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'cache', 'images', 'cook htmlArticle = htmlArticle.replace(/background:url\([^)]+\)[^;}]*/ig, ''); //Remove the details polyfill: it's poor and doesn't recognize Edgium - htmlArticle = htmlArticle.replace(/