summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'index.html')
-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();