Compare commits
2 commits
3e712ca620
...
7acde033c9
Author | SHA1 | Date | |
---|---|---|---|
7acde033c9 | |||
642b9a7fb3 |
3 changed files with 36 additions and 3 deletions
BIN
assets/images/icons-manifest/icon152.png
Normal file
BIN
assets/images/icons-manifest/icon152.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.5 KiB |
31
index.html
31
index.html
|
@ -2,10 +2,21 @@
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
|
<meta
|
||||||
|
name="description"
|
||||||
|
content="A prettier client for the /tg/station Wiki"
|
||||||
|
/>
|
||||||
<meta name="theme-color" content="#141c26" />
|
<meta name="theme-color" content="#141c26" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<link rel="manifest" href="/manifest.webmanifest" />
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||||
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
|
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
|
||||||
|
<meta name="apple-mobile-web-app-title" content="/tg/station handbook" />
|
||||||
|
<link
|
||||||
|
rel="apple-touch-icon"
|
||||||
|
href="assets/images/icons-manifest/icon152.png"
|
||||||
|
/>
|
||||||
|
<link rel="manifest" href="manifest.webmanifest" />
|
||||||
|
<link rel="icon" href="favicon.ico" type="image/x-icon" />
|
||||||
<link
|
<link
|
||||||
rel="preload"
|
rel="preload"
|
||||||
href="assets/fonts/iosevka/iosevka-aile.css"
|
href="assets/fonts/iosevka/iosevka-aile.css"
|
||||||
|
@ -42,5 +53,21 @@
|
||||||
<h2>JavaScript support is required to run this app.</h2>
|
<h2>JavaScript support is required to run this app.</h2>
|
||||||
</noscript>
|
</noscript>
|
||||||
<script src="src/index.ts" async></script>
|
<script src="src/index.ts" async></script>
|
||||||
|
<script>
|
||||||
|
if ("serviceWorker" in navigator) {
|
||||||
|
const x = "sw.js";
|
||||||
|
navigator.serviceWorker
|
||||||
|
.register(x)
|
||||||
|
.then(function (registration) {
|
||||||
|
console.log(
|
||||||
|
"Registration successful, scope is:",
|
||||||
|
registration.scope
|
||||||
|
);
|
||||||
|
})
|
||||||
|
.catch(function (error) {
|
||||||
|
console.log("Service worker registration failed, error:", error);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "/tg/station Handbook",
|
"name": "tgstation Handbook",
|
||||||
"short_name": "tgstationHandbook",
|
"short_name": "tgstationHandbook",
|
||||||
"start_url": ".",
|
"start_url": ".",
|
||||||
"display": "standalone",
|
"display": "standalone",
|
||||||
|
@ -31,6 +31,12 @@
|
||||||
"type": "image/png",
|
"type": "image/png",
|
||||||
"purpose": "any maskable"
|
"purpose": "any maskable"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"src": "assets/images/icons-manifest/icon152.png",
|
||||||
|
"sizes": "152x152",
|
||||||
|
"type": "image/png",
|
||||||
|
"purpose": "any maskable"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"src": "assets/images/icons-manifest/icon168.png",
|
"src": "assets/images/icons-manifest/icon168.png",
|
||||||
"sizes": "168x168",
|
"sizes": "168x168",
|
||||||
|
|
Reference in a new issue