summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-06-01 17:00:24 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-06-01 17:00:24 -0400
commit1528a1c8fbd15103b02ce3d735355097b5774b5f (patch)
tree5e37af573c4fc9529850594f9e672c080cc04ed9
parentba9706d6c5ae1a9d515cf302d738230c4f1041ef (diff)
downloadksmap-1528a1c8fbd15103b02ce3d735355097b5774b5f.tar.gz
Move css into its own file and force https OSM
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rw-r--r--www/base.css11
-rw-r--r--www/index.html5
-rw-r--r--www/loader.js4
3 files changed, 16 insertions, 4 deletions
diff --git a/www/base.css b/www/base.css
new file mode 100644
index 0000000..55e5c9b
--- /dev/null
+++ b/www/base.css
@@ -0,0 +1,11 @@
+body {
+ padding: 0px;
+ margin: 0px;
+}
+
+#map {
+ width: 100%;
+ height: 100%;
+ margin: 0px;
+ padding: 0px;
+}
diff --git a/www/index.html b/www/index.html
index 5353e1b..f680525 100644
--- a/www/index.html
+++ b/www/index.html
@@ -2,10 +2,11 @@
<head>
<title>Kernel.org Keysigning Dummy Page</title>
<link rel="stylesheet" href="leaflet/v1.6.0/leaflet.css" />
+<link rel="stylesheet" href="base.css" />
<script src="leaflet/v1.6.0/leaflet.js"></script>
<script src='KML.js'></script>
<script src='loader.js'></script>
-<body style="padding:0;margin:0;">
-<div id="map" style="width: 100%; height: 100%; margin: 0; padding: 0;"></div>
+<body>
+<div id="map"></div>
</body>
</html>
diff --git a/www/loader.js b/www/loader.js
index 3a95857..90b1e0e 100644
--- a/www/loader.js
+++ b/www/loader.js
@@ -1,8 +1,8 @@
document.addEventListener('DOMContentLoaded', function(event) {
var map = L.map('map').setView([0, 0], 2);
- osm = L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
- attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
+ osm = L.tileLayer('https://{s}.tile.osm.org/{z}/{x}/{y}.png', {
+ attribution: '&copy; <a href="https://osm.org/copyright">OpenStreetMap</a> contributors'
});
osm.addTo(map)