diff options
author | Robert Scheibe <mail@robert-scheibe.de> | 2025-01-06 14:35:47 +0100 |
---|---|---|
committer | Robert Scheibe <mail@robert-scheibe.de> | 2025-01-06 14:35:47 +0100 |
commit | bf505c040a8feb7b4eae58514016be22aa985741 (patch) | |
tree | 0d6fb9a9d252f7b69a9a80737380232f507daece /index.html | |
parent | 26e807b00d2833a21cbd99ebca238dda9988ec13 (diff) |
added arrow keys for navigation
Diffstat (limited to 'index.html')
-rw-r--r-- | index.html | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -142,6 +142,23 @@ function updateButtons() { currentDateTime.getTime() === now.getTime(); } +document.addEventListener('keydown', function(event) { + switch(event.key) { + case 'ArrowUp': + jumpTime(60); // Vorwärts um 1 Stunde + break; + case 'ArrowDown': + jumpTime(-60); // Rückwärts um 1 Stunde + break; + case 'ArrowRight': + jumpTime(15); // Vorwärts um 15 Minuten + break; + case 'ArrowLeft': + jumpTime(-15); // Rückwärts um 15 Minuten + break; + } +}); + // Initial gallery setup updateGallery(); |