site/templates/podlove-player-script.html
2020-08-11 16:54:14 +02:00

7 lines
289 B
HTML

<script src="{{ get_url(path="vendor/podlove-web-player/embed.js") | safe }}"></script>
<script>
document.querySelectorAll('.podlove-player').forEach(el => {
podlovePlayer( `#${el.id}`, JSON.parse(document.getElementById(`config-episode-${el.dataset.id}`).innerText))
})
</script>