add noscript info message

This commit is contained in:
anna 2022-10-25 22:55:18 +02:00
parent e730e85b45
commit 3930220c3e
Signed by: fef
GPG key ID: EC22E476DC2D3D84

25
dist/index.html vendored
View file

@ -7,12 +7,14 @@
<style> <style>
* { * {
box-sizing: border-box; box-sizing: border-box;
font-family: sans-serif;
} }
html, body { html, body {
margin: 0; margin: 0;
overflow: hidden; overflow: hidden;
background-color: black; background-color: black;
color: #ccc;
} }
#render { #render {
@ -21,9 +23,32 @@
left: 0; left: 0;
background-color: black; background-color: black;
} }
noscript {
display: block;
margin-top: 60px;
text-align: center;
line-height: 1.5rem;
}
a {
color: #cb54c2;
}
</style> </style>
</head> </head>
<body> <body>
<noscript>
<h1>JavaScript Disabled</h1>
<p>
It appears that JavaScript is disabled in your browser. Excellent!<br>
However, by nature of being an interactive game, this site requires it.<br>
Please enable JavaScript in your browser's settings to play this game.
</p>
<p>
Alternatively, you may also obtain the source code and run it locally:<br>
<a href="https://git.bsd.gay/fef/wfcjs">https://git.bsd.gay/fef/wfcjs</a>
</p>
</noscript>
<canvas id="render"></canvas> <canvas id="render"></canvas>
<script type="text/javascript" src="bundle.js"></script> <script type="text/javascript" src="bundle.js"></script>
</body> </body>