0

Merge pull request #1459 from r15ch13/noscript

Use <noscript> to display message when JavaScript is disabled
This commit is contained in:
Nicolas F
2018-06-13 19:18:25 +02:00
committed by GitHub
2 changed files with 5 additions and 8 deletions

View File

@@ -36,8 +36,6 @@ overviewer.util = {
overviewer.util.initializePolyfills(); overviewer.util.initializePolyfills();
overviewer.util.initializeMarkers(); overviewer.util.initializeMarkers();
document.getElementById('NoJSWarning').remove();
overviewer.coordBoxClass = L.Control.extend({ overviewer.coordBoxClass = L.Control.extend({
options: { options: {
position: 'bottomleft', position: 'bottomleft',

View File

@@ -22,11 +22,10 @@
<!-- Generated at: {time} --> <!-- Generated at: {time} -->
<body onload="overviewer.util.initialize()"> <body onload="overviewer.util.initialize()">
<div id="mcmap"> <noscript style="color:white; background-color:black">
<div id="NoJSWarning" style="color:white; background-color:black"> If you can see this message, there is likely a problem loading the Overviewer JavaScript components.
If you can see this message, there is likely a problem loading the Overviewer javascript components. Check the JavaScript console for error messages.
Check the javascript console for error messages. </noscript>
</div> <div id="mcmap"></div>
</div>
</body> </body>
</html> </html>