... |
... |
@@ -1,13 +1,17 @@ |
1 |
1 |
{{html}} |
2 |
|
-<iframe |
3 |
|
- style="border-radius: 12px" |
4 |
|
- src="https://open.spotify.com/embed/playlist/0e8guQffSLf0AD7SayyGpc?utm_source=generator&theme=0" |
5 |
|
- width="100%" |
6 |
|
- height="352" |
7 |
|
- frameBorder="0" |
8 |
|
- allowfullscreen="" |
9 |
|
- allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture" |
10 |
|
- loading="lazy" |
11 |
|
-></iframe> |
|
2 |
+<script src="https://open.spotify.com/embed/iframe-api/v1" async></script> |
|
3 |
+ |
|
4 |
+<div id="embed-iframe"></div> |
|
5 |
+ |
|
6 |
+<script> |
|
7 |
+ window.onSpotifyIframeApiReady = (IFrameAPI) => { |
|
8 |
+ let element = document.getElementById("embed-iframe"); |
|
9 |
+ let options = { |
|
10 |
+ uri: "spotify:playlist:0e8guQffSLf0AD7SayyGpc", |
|
11 |
+ }; |
|
12 |
+ let callback = (EmbedController) => {}; |
|
13 |
+ IFrameAPI.createController(element, options, callback); |
|
14 |
+ }; |
|
15 |
+</script> |
12 |
12 |
{{/html}} |
13 |
13 |
|