From 80ce22b692d7f3d40ebbb485f1aef54244881e6e Mon Sep 17 00:00:00 2001 From: Claude Code Date: Sun, 12 Apr 2026 16:12:55 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20Video-Wiedergabe=20bei=20R=C3=BCckkehr?= =?UTF-8?q?=20zu=20Slide=200=20sicherstellen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Browser pausiert Videos bei opacity:0, autoplay greift nicht erneut. Explizit play() bei Slide 0, pause() bei anderen Slides. Co-Authored-By: Claude Opus 4.6 (1M context) --- vorschau/js/app.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/vorschau/js/app.js b/vorschau/js/app.js index 14c5b4b..97a3977 100644 --- a/vorschau/js/app.js +++ b/vorschau/js/app.js @@ -64,7 +64,14 @@ if (heroDots[oldIndex]) heroDots[oldIndex].classList.remove('active'); var vc = document.getElementById('hero-video-container'); - if (vc) vc.classList.toggle('hidden', index !== 0); + if (vc) { + vc.classList.toggle('hidden', index !== 0); + var vid = vc.querySelector('video'); + if (vid) { + if (index === 0) vid.play(); + else vid.pause(); + } + } setTimeout(function () { heroSlides[oldIndex].classList.remove('exiting');