summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Scheibe <mail@robert-scheibe.de>2025-01-06 14:35:47 +0100
committerRobert Scheibe <mail@robert-scheibe.de>2025-01-06 14:35:47 +0100
commitbf505c040a8feb7b4eae58514016be22aa985741 (patch)
tree0d6fb9a9d252f7b69a9a80737380232f507daece
parent26e807b00d2833a21cbd99ebca238dda9988ec13 (diff)
added arrow keys for navigation
-rw-r--r--index.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/index.html b/index.html
index c8e863f..8f802e2 100644
--- a/index.html
+++ b/index.html
@@ -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();