Browse Source

add hires favicon, add support for run-as-app on chrome

Andrew Dolgov 2 years ago
parent
commit
f37c9975ee
4 changed files with 29 additions and 3 deletions
  1. 11 2
      README.md
  2. BIN
      img/favicon_hires.png
  3. 4 1
      index.php
  4. 14 0
      manifest.json

+ 11 - 2
README.md

@@ -5,6 +5,15 @@ responsive web EPUB reader using EPUB.js and Calibre database
 
 relies on HTTP Authentication provided by httpd
 
-due to EPUB.js strangeness, some URL rewriting is required (nginx
-config included)
+due to EPUB.js strangeness, some URL rewriting is required (nginx config included)
 
+Acknowledgements
+================
+
+1. Hires favicon from Flaticon
+
+https://www.shareicon.net/school-material-education-tools-and-utensils-reader-open-leisure-open-book-reading-book-803832
+
+2. Normal favicon from Silk icon pack
+
+http://www.famfamfam.com/lab/icons/silk/

BIN
img/favicon_hires.png


+ 4 - 1
index.php

@@ -17,7 +17,10 @@
 	<script src="lib/holder.min.js"></script>
 	<title>The Epube</title>
 	<link type="text/css" rel="stylesheet" media="screen" href="css/index.css" />
-	<link id="favicon" rel="shortcut icon" type="image/png" href="img/favicon.png" />
+	<link rel="shortcut icon" type="image/png" href="img/favicon.png" />
+	<link rel="shortcut icon" sizes="192x192" href="img/favicon_hires.png">
+	<link rel="manifest" href="manifest.json">
+	<meta name="mobile-web-app-capable" content="yes">
 </head>
 <body>
 

+ 14 - 0
manifest.json

@@ -0,0 +1,14 @@
+{
+  "name": "The Epube",
+  "icons": [
+    {
+      "src": "img/favicon_hires.png",
+      "sizes": "192x192",
+      "type": "image/png",
+      "density": 4.0
+    }
+  ],
+  "start_url": "index.php",
+  "display": "standalone",
+  "orientation": "portrait"
+}