Do not hide contents if JS is disabled

This commit is contained in:
Florine W. Dekker 2021-04-28 13:40:01 +02:00
parent 229259595a
commit eb1982d0ea
Signed by: FWDekker
GPG Key ID: B1B567AF58D6EE0F
4 changed files with 5 additions and 6 deletions

BIN
package-lock.json generated

Binary file not shown.

View File

@ -1,6 +1,6 @@
{
"name": "blog",
"version": "1.1.10",
"version": "1.1.11",
"description": "Felix W. Dekker's personal blog.",
"author": "Felix W. Dekker",
"browser": "dist/bundle.js",
@ -24,7 +24,7 @@
"grunt-exec": "^3.0.0",
"grunt-text-replace": "^0.4.0",
"grunt-webpack": "^4.0.3",
"webpack": "^5.35.1",
"webpack": "^5.36.0",
"webpack-cli": "^4.6.0"
}
}

View File

@ -21,12 +21,12 @@
<img src="https://stats.fwdekker.com/count?p=/blog{{ page.url }}" alt="Counting pixel" />
<p>
This website does not function if JavaScript is disabled.
This website does not function fully if JavaScript is disabled.
Please check the <a href="https://www.enable-javascript.com/">
instructions on how to enable JavaScript in your web browser</a>.
</p>
</noscript>
<main class="hidden">
<main> <!-- No need to hide if JS disabled -->
<div id="nav"></div>
<div id="contents">
<div id="header"></div>

View File

@ -1,5 +1,5 @@
// noinspection JSUnresolvedVariable
const {$, doAfterLoad, footer, header, nav, showPage} = window.fwdekker;
const {$, doAfterLoad, footer, header, nav} = window.fwdekker;
doAfterLoad(() => {
@ -9,5 +9,4 @@ doAfterLoad(() => {
vcsURL: "https://git.fwdekker.com/FWDekker/blog/",
version: "v%%VERSION_NUMBER%%"
}));
showPage();
});