From fb7e52a3bca484f5d26ff6aa393d4dbdb5a22437 Mon Sep 17 00:00:00 2001 From: Claude Code Date: Sun, 12 Apr 2026 15:50:09 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20Slider-Intervall=2015s=20f=C3=BCr=20Vide?= =?UTF-8?q?o-Slide,=208s=20f=C3=BCr=20andere?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Slide 0 bleibt jetzt so lange sichtbar wie das Video dauert (15s). Alle anderen Slides wechseln weiterhin nach 8s. Umstellung von setInterval auf verkettete setTimeout für dynamisches Timing. Co-Authored-By: Claude Opus 4.6 (1M context) --- vorschau/js/app.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/vorschau/js/app.js b/vorschau/js/app.js index 5171353..7947f20 100644 --- a/vorschau/js/app.js +++ b/vorschau/js/app.js @@ -47,8 +47,13 @@ var heroCurrentSlide = 0; var heroTimer = null; var HERO_INTERVAL = 8000; + var HERO_INTERVAL_VIDEO = 15000; var heroIsTransitioning = false; + function heroGetInterval() { + return heroCurrentSlide === 0 ? HERO_INTERVAL_VIDEO : HERO_INTERVAL; + } + function heroGoTo(index) { if (heroIsTransitioning || index === heroCurrentSlide || !heroSlides.length) return; heroIsTransitioning = true; @@ -80,7 +85,10 @@ function heroStartAutoplay() { heroStopAutoplay(); - heroTimer = setInterval(heroNext, HERO_INTERVAL); + heroTimer = setTimeout(function tick() { + heroNext(); + heroTimer = setTimeout(tick, heroGetInterval()); + }, heroGetInterval()); } function heroStopAutoplay() {