summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelianthella <git@gumi.ca>2020-12-22 12:17:52 -0500
committerHelianthella <git@gumi.ca>2020-12-22 12:17:55 -0500
commitd5319656bbac681e83d2c9f98576cabe817baa31 (patch)
tree4f6ab809475b1b2aef72c8c1d490b03a6a2e4e1b
parentdffbf1ce89cd61a3165fd1dad35e9c4d2f6c08dc (diff)
downloadwebsite-6.1.0.tar.gz
website-6.1.0.tar.bz2
website-6.1.0.tar.xz
website-6.1.0.zip
display a bare-bones website when javascript is disabledv6.1.0
redirects to /lite when disabled, then redirects back when enabled
-rw-r--r--package.json2
-rw-r--r--public/index.html3
-rw-r--r--public/lite/bare.css8
-rw-r--r--public/lite/index.html51
-rw-r--r--public/lite/redirect.js1
5 files changed, 63 insertions, 2 deletions
diff --git a/package.json b/package.json
index f0321c2..f84e06b 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "themanaworld-website",
- "version": "6.0.0",
+ "version": "6.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
diff --git a/public/index.html b/public/index.html
index 29e8c5e..a95e3b5 100644
--- a/public/index.html
+++ b/public/index.html
@@ -9,7 +9,8 @@
</head>
<body>
<noscript>
- <strong>We're sorry but this website doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
+ <meta http-equiv="refresh" content="1;url=/lite/">
+ Redirecting to the <a href="/lite/">Lite version</a>...
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
diff --git a/public/lite/bare.css b/public/lite/bare.css
new file mode 100644
index 0000000..9e4d36e
--- /dev/null
+++ b/public/lite/bare.css
@@ -0,0 +1,8 @@
+.nojs {
+ margin: 2em;
+ border: solid 3px orange;
+ padding: 1em;
+ background: beige;
+ color: darkblue;
+ contain: content;
+}
diff --git a/public/lite/index.html b/public/lite/index.html
new file mode 100644
index 0000000..d85319b
--- /dev/null
+++ b/public/lite/index.html
@@ -0,0 +1,51 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width,initial-scale=1.0">
+ <meta name="robots" content="noindex">
+ <link rel="icon" href="/favicon.ico">
+ <link rel="canonical" href="https://www.themanaworld.org">
+ <link href="bare.css" rel="stylesheet">
+ <title>The Mana World (Lite)</title>
+ </head>
+ <body>
+ <h1>The Mana World</h1>
+ <section class="nojs">
+ <h2>JavaScript notice</h2>
+ <p>You are seeing the Lite version of our website because you have disabled JavaScript for this domain. To enable interactive features, please whitelist this domain. We do not use any non-free JavaScript and you can find the source code of this website at <a target="_blank" rel="noopener" href="https://github.com/themanaworld/themanaworld-website">https://github.com/themanaworld/themanaworld-website</a></p>
+ </section>
+ <section>
+ <h2>About The Mana World</h2>
+ <blockquote>
+ <p>The Mana World (TMW) is a serious effort to create an innovative free and open source MMORPG. TMW uses 2D graphics and aims to create a large and diverse interactive world. It is licensed under the GPL, making sure this game can&#39;t ever run away from you.</p>
+ </blockquote>
+ </section>
+ <section>
+ <h2>Account registration</h2>
+ <blockquote>
+ <p>To create a game account without using the full website, contact us at registration@themanaworld.org</p>
+ <p>Make sure to <a href="https://wiki.themanaworld.org/index.php/Downloads">download our game client</a> in order to play.</p>
+ </blockquote>
+ </section>
+ <section>
+ <h2>Account recovery</h2>
+ <blockquote>
+ <p>If you need help accessing your account (lost username or password), contact us at support@themanaworld.org</p>
+ </blockquote>
+ </section>
+ <section>
+ <h2>Support</h2>
+ <blockquote>
+ <p>You can find helpful articles <a href="https://wiki.themanaworld.org">on our wiki</a>. If you require further assistance, feel free to contact us.</p>
+ </blockquote>
+ <h3>Contact us</h3>
+ <ul>
+ <li>On IRC: <a href="https://forums.themanaworld.org/viewforum.php?f=41">#themanaworld on Freenode</a></li>
+ <li>On Discord: <a href="https://forums.themanaworld.org/viewforum.php?f=65">The Mana World server</a></li>
+ <li>On the forums: <a href="https://forums.themanaworld.org/viewforum.php?f=3">Support and Bug reports</a></li>
+ </ul>
+ </section>
+ <script src="redirect.js"></script>
+ </body>
+</html>
diff --git a/public/lite/redirect.js b/public/lite/redirect.js
new file mode 100644
index 0000000..ca3b4cf
--- /dev/null
+++ b/public/lite/redirect.js
@@ -0,0 +1 @@
+document.location.href = "/";