Viel
This commit is contained in:
1 parent
e5869dc6cb
commit
a4a261f871
47 files changed
+1131
-161
No files matched your search
@@ -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();
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user