Skip to content

Open Infrastructure Map, a view of infrastructure data in OpenStreetMap

Re-add noscript

Russ Garrett95815a407c42
diff --git a/src/index.css b/src/index.css
index 6b6a126..7b29752 100644
--- a/src/index.css
+++ b/src/index.css
@@ -7,17 +7,14 @@ html {
color: #333;
}
-body {
- display: block !important;
+body, #container, #map {
width: 100%;
height: 100%;
margin: 0px;
}
-#map {
- width: 100%;
- height: 100%;
- background-color: white;
+#container {
+ display: block !important;
}
header {
diff --git a/src/index.html b/src/index.html
index 09a73da..9ee59cb 100644
--- a/src/index.html
+++ b/src/index.html
@@ -9,8 +9,11 @@
<meta property="og:description" content="Map of the world's hidden power and telecoms infrastructure, with data from OpenStreetMap" />
<meta property="og:title" content="Open Infrastructure Map" />
</head>
-<body style="display:none">
- <header><h1>Open Infrastructure Map</h1>&nbsp;&nbsp;<a href="/about.html">about</a></header>
- <div id="map"></div>
+<body>
+ <noscript>You must have Javascript enabled to view Open Infrastructure Map</noscript>
+ <div id="container" style="display:none">
+ <header><h1>Open Infrastructure Map</h1>&nbsp;&nbsp;<a href="/about.html">about</a></header>
+ <div id="map"></div>
+ </div>
</body>
</html>