This commit is contained in:
Set Sakrecoer 2019-07-13 23:44:59 +02:00
parent 58c6ad52b6
commit 34abecbc4e
10 changed files with 60 additions and 23 deletions

View file

@ -24,11 +24,13 @@ layout: default
</div>
<div class="trackcontainer">
<h1>{{ page.title }}</h1>
<h2 id="tracktime">{{ page.keywords }}</h2>
<h1>{{ page.title }}</h1>
<p style="margin-bottom: 0px;">{{ page.keywords }}<br />{{ page.date | date: '%Y - %B' }}
<br />
<span id="tracktime" style="font-weight: normal;">&nbsp;</span></p>
{% include cookiemonster.html %}
</div>
<div id="timer">
@ -39,8 +41,8 @@ layout: default
</div>
<!-- stylemachine by Sakrecoer -snipthis if ya feel it - its the pary that runs the player ;) -->
</div>
<audio preload="true"
ontimeupdate="document.getElementById('tracktime').innerHTML = Math.floor(this.currentTime) + ' / ' + Math.floor(this.duration);">
<audio preload="true" autoplay
ontimeupdate="document.getElementById('tracktime').innerHTML = Math.floor(this.currentTime) + ' / ' + Math.floor(this.duration) + ' Seconds';">
<source src="{{ page.mp3 }}" type="audio/mpeg" />
<source src="{{ page.ogg }}" type="audio/ogg" />
<h1>Your browser isn't ready for so much hotness. Use the download-link instead.</h1>.
@ -59,8 +61,8 @@ layout: default
// only functional if "loop" is removed
mu.pause();
mu.currentTime = 0;
{% if page.next_in_category != nil %}
loadUrl('{{ site.baseurl }}{{ page.next_in_category.url }}'); return false;
{% if page.previous != nil %}
loadUrl('{{ site.baseurl }}{{ page.previous.url }}'); return false;
{% endif %}
// qq IE10
muFade();