Make the app installable on mobile (PWA manifest, icons, offline service worker)

This commit is contained in:
X4Lo committed 2026-11-07 23:14:46 +00:00
1 parent b6a74f2eee
commit 95dbfc0678
9 files changed
+89 -2

No files matched your search

+13
View File
@@ -66,6 +66,14 @@ td.n{color:var(--mu)}td.t{font-weight:700;font-size:20px;color:var(--c)}
.stats b{display:block;font-family:'Fredoka',sans-serif;font-size:26px}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
</style>
<link rel="manifest" href="/manifest.webmanifest">
<meta name="theme-color" content="#8B6CFF">
<link rel="icon" type="image/png" sizes="192x192" href="/icons/icon-192.png">
<link rel="apple-touch-icon" href="/icons/apple-touch-icon.png">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-title" content="Fälle">
<meta name="apple-mobile-web-app-status-bar-style" content="default">
</head>
<body>
<div class="app" id="app"></div>
@@ -227,5 +235,10 @@ function quiz(k){
}
home();
</script>
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', function () { navigator.serviceWorker.register('/sw.js').catch(function () {}); });
}
</script>
</body>
</html>