From 38af8a4c820d385e7801a5c557938044225e4468 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Tue, 11 Feb 2020 04:23:16 +0100 Subject: viewer: default configuration for mobile-web-app-capable manifest. Open the gallery in Chrome on Android, open the menu, then "Add to home screen". It will install the website as a standalone, fullscreen, app. --- viewer/public/defaulticon.png | Bin 0 -> 3363 bytes viewer/public/index.html | 4 +++- viewer/public/manifest.json.example | 18 ++++++++++++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 viewer/public/defaulticon.png create mode 100644 viewer/public/manifest.json.example (limited to 'viewer/public') diff --git a/viewer/public/defaulticon.png b/viewer/public/defaulticon.png new file mode 100644 index 0000000..0194e29 Binary files /dev/null and b/viewer/public/defaulticon.png differ diff --git a/viewer/public/index.html b/viewer/public/index.html index 8176ab8..cadbc72 100644 --- a/viewer/public/index.html +++ b/viewer/public/index.html @@ -23,9 +23,11 @@ + + ldgallery @@ -39,4 +41,4 @@ - + \ No newline at end of file diff --git a/viewer/public/manifest.json.example b/viewer/public/manifest.json.example new file mode 100644 index 0000000..4ee40f1 --- /dev/null +++ b/viewer/public/manifest.json.example @@ -0,0 +1,18 @@ +{ + "short_name": "LdGallery", + "name": "LdGallery", + "icons": [ + { + "src": "defaulticon.svg", + "type": "image/svg+xml", + "sizes": "192x192" + }, + { + "src": "defaulticon.png", + "type": "image/png", + "sizes": "192x192" + } + ], + "display": "standalone", + "_comment": "https://developer.mozilla.org/en-US/docs/Web/Manifest" +} \ No newline at end of file -- cgit v1.2.3