Fehlerkorrekturen
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user