This commit is contained in:
lucashahmann committed 2026-10-19 21:01:31 +02:00
1 parent e5869dc6cb
commit a4a261f871
47 files changed
+1131 -161

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
// Spotify-Player erst nach Klick laden, damit vorher keine Daten an Spotify gehen.
document.querySelectorAll("[data-spotify-load]").forEach(function (button) {
button.addEventListener("click", function () {
var box = button.closest("[data-spotify-src]");
var iframe = document.createElement("iframe");
iframe.src = box.getAttribute("data-spotify-src");
iframe.height = "352";
iframe.title = "Deepwater Survival auf Spotify";
iframe.allow = "autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture";
iframe.loading = "lazy";
box.replaceChildren(iframe);
box.classList.add("is-loaded");
iframe.focus();
});
});