Add better noscript warning

This commit is contained in:
Wuzzy 2023-10-22 02:45:26 +02:00
parent 70bc28b8d3
commit 5fc5abe8e5
2 changed files with 20 additions and 1 deletions

View File

@ -90,6 +90,21 @@ hr {
padding: 0.5em;
margin-top: 0em;
}
.borderedWarning {
border-color: #000000;
border-width: 2px;
border-style: solid;
padding: 0.5em;
margin-top: 0.5em;
margin-bottom : 0.5em;
background-color: yellow;
color: black;
font-size: 125%;
font-weight: bold;
}
.borderdWarning a, .borderedWarning a:link, .borderedWarning a:visited, .borderedWarning a:hover, .borderedWarning a:active {
color: gray;
}
.configFrame {
border-color: #606060;
border-width: 0px 2px 2px 2px;

View File

@ -13,8 +13,12 @@
<body>
<h1>MiBPoV—Minetest Biome Point Visualizer</h1>
<noscript>This tool requires JavaScript to work.</noscript>
<div id="mainContentContainer" class="contentContainer">
<noscript>
<div class="borderedWarning">
ERROR: This tool requires JavaScript to work, but JavaScript is disabled in your browser. See the <a href="./manual.html">manual</a> to learn what this thing can do.
</div>
</noscript>
<div id="canvasContainer">
<canvas id="voronoiCanvas" width="500" height="500">
A Voronoi diagram is supposed to be here but for some reason it cannot be displayed. This tool is useless without this functionality.