Lägger till manifest.json för PWA-stöd och referens i index.html

This commit is contained in:
2025-01-24 17:39:16 +01:00
parent 575384d67f
commit 20f772aae7
10 changed files with 25 additions and 1 deletions

22
manifest.json Normal file
View File

@@ -0,0 +1,22 @@
{
"name": "Fredriks todos",
"short_name": "TODO",
"description": "An app to manage tasks in Org mode format.",
"start_url": "/",
"display": "standalone",
"background_color": "#ffffff",
"theme_color": "#4CAF50",
"icons": [
{
"src": "icons/icon-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "icons/icon-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
public/apple-touch-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
public/favicon-16x16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 249 B

BIN
public/favicon-32x32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 467 B

BIN
public/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

@@ -5,6 +5,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fredriks todos</title> <title>Fredriks todos</title>
<link rel="stylesheet" href="style.css"> <link rel="stylesheet" href="style.css">
<link rel="manifest" href="manifest.json" />
<!-- Flatpickr for dates --> <!-- Flatpickr for dates -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css">
<script src="https://cdn.jsdelivr.net/npm/flatpickr"></script> <script src="https://cdn.jsdelivr.net/npm/flatpickr"></script>
@@ -34,7 +36,7 @@
document.getElementById('scheduled').value = today; document.getElementById('scheduled').value = today;
// Initialize flatpickr with Swedish locale and Monday as the first day of the week // Initialize flatpickr with Swedish locale and Monday as the first day of the week
flatpickr("#scheduled", { flatpickr("#scheduled", {
locale: "sv", // Set Swedish locale //locale: "sv-SE", // Set Swedish locale
weekNumbers: true, // Show week numbers weekNumbers: true, // Show week numbers
firstDayOfWeek: 1 // Start weeks on Monday firstDayOfWeek: 1 // Start weeks on Monday
}); });