Remove inline styles

This commit is contained in:
Florine W. Dekker 2021-04-28 13:59:03 +02:00
parent 872a09b9a9
commit 861c552d57
Signed by: FWDekker
GPG Key ID: B1B567AF58D6EE0F
4 changed files with 8 additions and 7 deletions

BIN
package-lock.json generated

Binary file not shown.

View File

@ -1,6 +1,6 @@
{
"name": "tools",
"version": "1.1.2",
"version": "1.1.3",
"description": "Main page for the /tools directory.",
"author": "Felix W. Dekker",
"browser": "dist/bundle.js",
@ -16,7 +16,7 @@
"deploy": "grunt deploy"
},
"devDependencies": {
"grunt": "^1.3.0",
"grunt": "^1.4.0",
"grunt-cli": "^1.4.2",
"grunt-contrib-clean": "^2.0.0",
"grunt-contrib-copy": "^1.0.0",
@ -24,7 +24,7 @@
"grunt-focus": "^1.0.0",
"grunt-text-replace": "^0.4.0",
"grunt-webpack": "^4.0.2",
"webpack": "^5.32.0",
"webpack": "^5.36.0",
"webpack-cli": "^4.6.0"
}
}

View File

@ -12,6 +12,7 @@
<link rel="stylesheet" href="https://static.fwdekker.com/fonts/roboto/roboto.css" />
<link rel="stylesheet" href="https://static.fwdekker.com/lib/template/2.x.x/template.css" />
<!--suppress HtmlUnknownTarget -->
<link rel="stylesheet" href="main.css?v=%%VERSION_NUMBER%%" />
<script async src="https://stats.fwdekker.com/count.js"
data-goatcounter="https://stats.fwdekker.com/count"></script>
@ -20,7 +21,7 @@
<noscript>
<img src="https://stats.fwdekker.com/count?p=/tools/" alt="Counting pixel" />
<p style="color: red; font-weight: bold;">
<p>
This website does not function 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>.
@ -31,7 +32,7 @@
<iframe src="https://fwdekker.com/api/nav/" width="800px" height="400px">Failed to load the site map.</iframe>
</p>
</noscript>
<main style="display: none;">
<main class="hidden">
<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, stringToHtml} = window.fwdekker;
const {$, doAfterLoad, footer, header, nav, stringToHtml} = window.fwdekker;
const unpackEntry = function (entry, depth = 0) {
@ -22,7 +22,7 @@ doAfterLoad(() => {
vcsURL: "https://git.fwdekker.com/FWDekker/tools/",
version: "v%%VERSION_NUMBER%%"
}));
showPage();
$("main").classList.remove("hidden");
fetch("https://fwdekker.com/api/nav/")
.then(it => it.json())