diff options
author | Robert Scheibe <mail@robert-scheibe.de> | 2025-01-11 13:30:09 +0100 |
---|---|---|
committer | Robert Scheibe <mail@robert-scheibe.de> | 2025-01-11 13:30:09 +0100 |
commit | 09f0c55dd6c5068742e9c732777df8da6293f036 (patch) | |
tree | 070f51a9ae04fb48e6a69adc3c67a41cfe1d9746 /history.html | |
parent | 94a67b27c3d5975f0f04acc40d493730a5d36099 (diff) |
added arrow keys to history page, added favicon.ico
Diffstat (limited to 'history.html')
-rw-r--r-- | history.html | 16 |
1 files changed, 16 insertions, 0 deletions
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(); |