From 09f0c55dd6c5068742e9c732777df8da6293f036 Mon Sep 17 00:00:00 2001 From: Robert Scheibe Date: Sat, 11 Jan 2025 13:30:09 +0100 Subject: added arrow keys to history page, added favicon.ico --- history.html | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'history.html') diff --git a/history.html b/history.html index c0f0369..8bd95da 100644 --- a/history.html +++ b/history.html @@ -143,6 +143,22 @@ function updateButtons() { currentDate.getTime() === today.getTime(); } +document.addEventListener('keydown', function(event) { + switch(event.key) { + case 'ArrowUp': + jumpDays(7); // Vorwärts um 1 Stunde + break; + case 'ArrowDown': + jumpDays(-7); // Rückwärts um 1 Stunde + break; + case 'ArrowRight': + jumpDays(1); // Vorwärts um 15 Minuten + break; + case 'ArrowLeft': + jumpDays(-1); // Rückwärts um 15 Minuten + break; + } +}); // Initial gallery setup updateGallery(); -- cgit v1.2.3