Private
Public Access
1
0

feat: pwa functionality

This commit is contained in:
2025-12-30 21:14:27 +01:00
parent 5764905c6c
commit 1a485266ba
7 changed files with 147 additions and 54 deletions

View File

@@ -6,7 +6,19 @@
<title>Madplaner</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
</head>
<link rel="manifest" href="{{ url_for('static', filename='manifest.json') }}">
<meta name="theme-color" content="#2c3e50">
<link rel="apple-touch-icon" href="/static/icons/192.png">
<link rel="icon" href="https://fav.farm/%F0%9F%8D%B4">
<!-- cache busting for serivce worker -->
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}?v=1.1">
</head>
<script>
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/sw.js')
.then(() => console.log("Service Worker Registered"));
}
</script>
<body class="bg-gray-50 text-gray-900 font-sans">
{% with messages = get_flashed_messages(with_categories=true) %}