Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
hellophia committed May 9, 2024
1 parent 6b4d01f commit 8951df1
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions españolmix/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -178,22 +178,23 @@
}
};
};

const callback = (EmbedController) => {
document.querySelectorAll('a').forEach(
song => {
song.addEventListener('click', () => {
EmbedController.loadUri(song.dataset.spotifyId)
});
})
};

IFrameAPI.createController(element, options, callback);

li.appendChild(songlink);
ol.appendChild(li);

});

const callback = (EmbedController) => {
document.querySelectorAll('a').forEach(
song => {
console.log(song)
song.addEventListener('click', () => {
EmbedController.loadUri(song.dataset.spotifyId)
});
})
};

IFrameAPI.createController(element, options, callback);

function loadlyrics(url) {
fetch(url)
Expand Down

0 comments on commit 8951df1

Please sign in to comment.