Fehlerkorrekturen

This commit is contained in:
2025-11-10 14:45:18 +01:00
parent 729b4a2d59
commit 37c8bb014f
3 changed files with 41 additions and 36 deletions

View File

@@ -51,10 +51,15 @@
if (!picture || !img || !sources) return;
// === Daumenkino (nur für Tag 1) ===
// === Daumenkino (nur für Tag 1, wenn Popup geladen wurde) ===
if (dayToShow === 1) {
const thumbkino = document.querySelector(".thumbkino-video");
if (thumbkino) {
document.addEventListener("day01-loaded", () => {
const thumbkino = document.querySelector(".thumbkino-video");
if (!thumbkino) {
console.warn("[Bratonien] Kein Daumenkino-Element gefunden.");
return;
}
const formats = ["webm", "mp4"];
const resolutions = [
"nHD",
@@ -90,7 +95,7 @@
thumbkino.play().catch(() => {});
console.log(`[Bratonien] Daumenkino gesetzt für Tag ${padded}`);
}
});
}
const breakpoints = [420, 768, 1024, 1366, 1600, 1920, 2560, 3840];