add a PWA manifest
authorRobert Kaiser <kairo@kairo.at>
Thu, 2 Nov 2017 22:01:25 +0000 (23:01 +0100)
committerRobert Kaiser <kairo@kairo.at>
Thu, 2 Nov 2017 22:01:25 +0000 (23:01 +0100)
index.html
pwa.manifest [new file with mode: 0644]

index 3ca9752..e321252 100644 (file)
@@ -15,6 +15,7 @@
   <script src="js/library.js" type="application/javascript;version=1.8"></script>
   <script src="js/piwik.js" async="" defer=""></script>
   <link rel="stylesheet" href="style/lantea.css">
+  <link rel="manifest" href="/pwa.manifest">
   <link rel="shortcut icon" href="style/lanteaIcon16.png" type="image/png">
 </head>
 <body id="body">
diff --git a/pwa.manifest b/pwa.manifest
new file mode 100644 (file)
index 0000000..c89bc9f
--- /dev/null
@@ -0,0 +1,31 @@
+{
+  "name": "Lantea Maps",
+  "short_name": "Lantea",
+  "description": "Display maps and record (GPS) tracks of your location.",
+  "start_url": "/index.html",
+  "display": "standalone",
+  "background_color": "#CCCCCC",
+  "icons": {
+    "16": "/style/lanteaIcon16.png",
+    "32": "/style/lanteaIcon32.png",
+    "64": "/style/lanteaIcon64.png",
+    "128": "/style/lanteaIcon128.png"
+  }
+  "icons": [{
+    "src": "/style/lanteaIcon16.png",
+    "sizes": "16x16",
+    "type": "image/png"
+  }, {
+    "src": "/style/lanteaIcon32.png",
+    "sizes": "32x32",
+    "type": "image/png"
+  }, {
+    "src": "/style/lanteaIcon64.png",
+    "sizes": "64x64",
+    "type": "image/png"
+  }, {
+    "src": "/style/lanteaIcon128.png",
+    "sizes": "128x128",
+    "type": "image/png"
+  }]
+}