diff options
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(); |