// 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(); }); });