... |
... |
@@ -1,16 +1,17 @@ |
1 |
1 |
{{html}} |
2 |
|
-<iframe |
3 |
|
- style=" |
4 |
|
- border-radius: 12px; |
5 |
|
- width: 100%; |
6 |
|
- height: 352px; |
7 |
|
- border: none; |
8 |
|
- " |
9 |
|
- src="https://open.spotify.com/embed/playlist/0e8guQffSLf0AD7SayyGpc?utm_source=generator&theme=0" |
10 |
|
- allowfullscreen="" |
11 |
|
- allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture" |
12 |
|
- loading="lazy" |
13 |
|
-></iframe> |
14 |
|
-{{/html}} |
|
2 |
+<script src="https://open.spotify.com/embed/iframe-api/v1" async></script> |
15 |
15 |
|
|
4 |
+<div id="embed-iframe"></div> |
16 |
16 |
|
|
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> |
|
16 |
+{{/html}} |
|
17 |
+ |