site/templates/podlove-player-script.html

7 lines
289 B
HTML
Raw Permalink Normal View History

2020-08-11 16:14:38 +02:00
<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>