From e1be63b1ca9982e86502f8454229462a0f2f59c1 Mon Sep 17 00:00:00 2001 From: Felix Schlusche Date: Thu, 23 Oct 2025 17:53:03 +0200 Subject: [PATCH] Add utility functions for date formatting, time rounding, and notifications - Implemented functions to format dates between YYYY-MM-DD and DD.MM.YYYY - Added functions to get today's date in ISO format - Created functions to round time to the nearest 15 minutes - Developed a function to format time as HH:MM - Added a function to format duration in HH:MM:SS - Implemented a toast notification system with auto-remove functionality - Added functions to get day of the week and month names in German --- public/index.html | 144 ++++++++++++++++++--------- public/js/api.js | 180 ++++++++++++++++++++++++++++++++++ public/js/holidays.js | 154 +++++++++++++++++++++++++++++ public/{app.js => js/main.js} | 0 public/js/utils.js | 126 ++++++++++++++++++++++++ 5 files changed, 556 insertions(+), 48 deletions(-) create mode 100644 public/js/api.js create mode 100644 public/js/holidays.js rename public/{app.js => js/main.js} (100%) create mode 100644 public/js/utils.js diff --git a/public/index.html b/public/index.html index 280c5ba..e9d4435 100644 --- a/public/index.html +++ b/public/index.html @@ -258,6 +258,19 @@ flex-shrink: 0; } + /* Details/Summary chevron rotation */ + details[open] .details-chevron { + transform: rotate(180deg); + } + + details summary { + list-style: none; + } + + details summary::-webkit-details-marker { + display: none; + } + /* Blink animation for running timer icon */ @keyframes blink { 0%, 100% { opacity: 1; } @@ -402,49 +415,57 @@ - -
-
- - -
- -
- - -
- -
- + +
+ + + + CSV Filter & Export + +
+
+ + +
- +
+ + +
- - - +
+ + + + + + + +
-
+
- - ⚙️ + + + Einstellungen
@@ -560,8 +581,9 @@
-
-
+
+ + -
+ +
-
+ + + + +
+ + + +
@@ -789,8 +833,12 @@ - - + + + + + +