commit: f6ffbd8235d8c2a3c8ae0a08cd533f94b6e38648
parent aeea8077eff0e9382999e320483ac4d6af828d52
Author: microlith57 <microlith57@gmail.com>
Date: Mon, 10 Jun 2019 12:43:10 +1200
Add loading indicator to 404.html
This tells people what might be wrong if they don't have Javascript enabled.
Signed-off-by:
microlith57 <microlith57@gmail.com>
Diffstat:
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/404.html b/404.html
@@ -7,12 +7,24 @@ permalink: /404.html
<meta charset="utf-8">
<title>Loading..</title>
</head>
-<body style='background:black'>
+<body style='background:black; color:white'>
<script>
var parts = window.location.pathname.split("/")
var target = parts.slice(-1);
parts.splice(-1)
document.location.href = parts.join("/")+"/#"+target
</script>
+
+ <h1>
+ Loading, please wait.
+ <br />
+ If this takes a long time, please check your Javascript settings.
+ </h1>
+
+ <noscript>
+ <h2>
+ This website requires Javascript. To view the content, please enable it in your browser settings.
+ </h2>
+ </noscript>
</body>
</html>