fiddling wiht music template

This commit is contained in:
Set Sakrecoer 2019-04-28 19:26:34 +02:00
parent 99e3af7287
commit ad551f54fc

View file

@ -21,13 +21,12 @@ layout: default
{{ page.content }}
</div>
<audio preload="true" autoplay
ontimeupdate="document.getElementById('tracktime').innerHTML = Math.floor(this.currentTime) + ' / ' + Math.floor(this.duration);"
audio.mediaGroup="deluxe">
<audio preload="true"
ontimeupdate="document.getElementById('tracktime').innerHTML = Math.floor(this.currentTime) + ' / ' + Math.floor(this.duration);">
<source src="{{ site.audio_url }}{{ page.mp3 }}" type="audio/mpeg" />
<source src="{{ site.audio_url }}{{ page.ogg }}" type="audio/ogg" />
<h1>Your browser isn't ready for so much hotness. Use the download-link instead.</h1>.
</audio>
</audio>
<div id="tracktime"></div>
<!-- stylemachine by Sakrecoer -snipthis if ya feel it - its the pary that runs the player ;) -->