From bf505c040a8feb7b4eae58514016be22aa985741 Mon Sep 17 00:00:00 2001 From: Robert Scheibe Date: Mon, 6 Jan 2025 14:35:47 +0100 Subject: added arrow keys for navigation --- index.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'index.html') 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(); -- cgit v1.2.3