mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-08 03:37:12 -04:00
First build for prerelease
# Conflicts: # package.json Former-commit-id: 419ac7b0f1dce91e5a12ac166b36f94bea6cb317 [formerly ff74169f4f5c64764147123d72755a843cf232d8] Former-commit-id: a169f163ae2e3f5c592447bc21781321104c3e7c
This commit is contained in:
parent
e66a9e44de
commit
a97a90d851
@ -578,7 +578,6 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'utf8', 'images', 'cooki
|
||||
// Top menu :
|
||||
document.getElementById('btnHome').addEventListener('click', function () {
|
||||
setTab('btnHome');
|
||||
//$('#articleContent').hide();
|
||||
$('#articleContent').contents().empty();
|
||||
$('#searchingArticles').hide();
|
||||
$('#welcomeText').show();
|
||||
@ -649,7 +648,9 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'utf8', 'images', 'cooki
|
||||
$('#about').hide();
|
||||
$('#configuration').hide();
|
||||
$('#formArticleSearch').show();
|
||||
if (!activeBtn || activeBtn == 'btnHome') $('#articleContent').show();
|
||||
if (!activeBtn || activeBtn == 'btnHome') {
|
||||
document.getElementById('articleContent').style.display = 'block';
|
||||
}
|
||||
$("#articleList").empty();
|
||||
$('#articleListHeaderMessage').empty();
|
||||
$('#articleListWithHeader').hide();
|
||||
@ -2834,6 +2835,9 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'utf8', 'images', 'cooki
|
||||
$('#downloadAlert').hide();
|
||||
|
||||
var iframeArticleContent = document.getElementById('articleContent');
|
||||
|
||||
// Hide the iframe while loading
|
||||
iframeArticleContent.style.display = 'none';
|
||||
|
||||
if (params.contentInjectionMode === 'serviceworker') {
|
||||
params.transformedHTML = htmlArticle;
|
||||
@ -3079,9 +3083,6 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'utf8', 'images', 'cooki
|
||||
articleContent.write(htmlArticle);
|
||||
articleContent.close();
|
||||
|
||||
// Hide the iframe while loading
|
||||
iframeArticleContent.style.display = 'none';
|
||||
|
||||
} // End of injectHtml
|
||||
|
||||
function insertMediaBlobsJQuery() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user