2019-04-28 18:56:03 +02:00
|
|
|
---
|
|
|
|
layout: default
|
|
|
|
---
|
2019-07-10 02:16:43 +02:00
|
|
|
{% include navmenu.html %}
|
2019-05-02 21:15:10 +02:00
|
|
|
<div id="player">
|
2019-07-10 00:29:09 +02:00
|
|
|
<div id="info">
|
2019-07-09 19:04:46 +02:00
|
|
|
<div id="controls">
|
|
|
|
<div class="container">
|
2019-08-29 09:07:01 +02:00
|
|
|
<button id="mu_pause">Play</button><br /><br />
|
2019-07-09 22:17:29 +02:00
|
|
|
{% if page.previous != nil %}
|
|
|
|
<a href="{{ site.baseurl }}{{ page.previous.url }}" title="Previous Track"><img
|
|
|
|
src="{{ site.baseurl }}/assets/img/icons/skiprwd.png" title="Previous Track" /></a>
|
|
|
|
{% endif %}
|
2019-07-13 22:18:15 +02:00
|
|
|
<a id="download" title="Download This Track!" href="{{ page.mp3 }}"><img
|
2019-07-09 22:17:29 +02:00
|
|
|
src="{{ site.baseurl }}/assets/img/icons/dl.png" title="Download Track" /></a>
|
|
|
|
{% if page.next != nil %}
|
|
|
|
<a href="{{ site.baseurl }}{{ page.next.url }}" title="Next Track"><img
|
|
|
|
src="{{ site.baseurl }}/assets/img/icons/skipfwd.png" title="Next Track" /></a>{% endif %}
|
2019-08-29 09:07:01 +02:00
|
|
|
<br /><br />{% include liberapay.html %}
|
2019-07-09 19:49:14 +02:00
|
|
|
</div>
|
2019-05-03 16:49:20 +02:00
|
|
|
</div>
|
2019-05-02 21:15:10 +02:00
|
|
|
</div>
|
2019-07-09 22:17:29 +02:00
|
|
|
<div class="trackcontainer">
|
2019-07-15 17:49:01 +02:00
|
|
|
|
|
|
|
<h1>{{ page.title }}</h1>
|
2019-11-05 11:31:36 +01:00
|
|
|
<p style="margin-bottom: 0px;">{% for c in page.categories %}{{ c }}{% unless forloop.last %} | {% endunless %}{% endfor %}<br />{{ page.date | date: '%Y - %B' }}
|
2019-07-15 17:49:01 +02:00
|
|
|
|
|
|
|
<br />
|
2019-07-13 23:44:59 +02:00
|
|
|
<span id="tracktime" style="font-weight: normal;"> </span></p>
|
2019-07-15 17:49:01 +02:00
|
|
|
{% include cookiemonster.html %}
|
|
|
|
</div>
|
2019-05-02 21:15:10 +02:00
|
|
|
|
2019-07-09 19:04:46 +02:00
|
|
|
<div id="timer">
|
|
|
|
{{ page.content }}
|
|
|
|
</div>
|
2019-05-02 21:15:10 +02:00
|
|
|
</div>
|
2019-07-15 17:49:01 +02:00
|
|
|
<audio preload="true" autoplay="true"
|
2019-07-13 23:44:59 +02:00
|
|
|
ontimeupdate="document.getElementById('tracktime').innerHTML = Math.floor(this.currentTime) + ' / ' + Math.floor(this.duration) + ' Seconds';">
|
2019-07-13 22:18:15 +02:00
|
|
|
<source src="{{ page.mp3 }}" type="audio/mpeg" />
|
|
|
|
<source src="{{ page.ogg }}" type="audio/ogg" />
|
2019-04-28 19:26:34 +02:00
|
|
|
<h1>Your browser isn't ready for so much hotness. Use the download-link instead.</h1>.
|
|
|
|
</audio>
|
2019-04-24 17:18:35 +02:00
|
|
|
<script type="text/javascript">
|
2019-04-28 18:56:03 +02:00
|
|
|
function loadUrl(newLocation) {
|
|
|
|
window.location = newLocation;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
var mu = document.getElementsByTagName("audio")[0];
|
2019-07-15 17:49:01 +02:00
|
|
|
var anim = document.getElementById("wallpaper");
|
2019-04-28 18:56:03 +02:00
|
|
|
var pauseButton = document.getElementById("mu_pause");
|
|
|
|
function muFade() {
|
|
|
|
mu.classList.add("stopfade");
|
2019-07-15 17:49:01 +02:00
|
|
|
anim.classList.add("stopfade");
|
2019-04-28 18:56:03 +02:00
|
|
|
}
|
|
|
|
mu.addEventListener('ended', function () {
|
|
|
|
// only functional if "loop" is removed
|
|
|
|
mu.pause();
|
|
|
|
mu.currentTime = 0;
|
2019-07-13 23:44:59 +02:00
|
|
|
{% if page.previous != nil %}
|
|
|
|
loadUrl('{{ site.baseurl }}{{ page.previous.url }}'); return false;
|
2019-04-24 17:18:35 +02:00
|
|
|
{% endif %}
|
2019-04-28 18:56:03 +02:00
|
|
|
// qq IE10
|
|
|
|
muFade();
|
|
|
|
});
|
|
|
|
pauseButton.addEventListener("click", function () {
|
|
|
|
mu.classList.toggle("stopfade");
|
|
|
|
if (mu.paused) {
|
|
|
|
mu.play();
|
2019-04-28 19:33:43 +02:00
|
|
|
pauseButton.innerHTML = "Pause";
|
2019-04-28 18:56:03 +02:00
|
|
|
} else {
|
|
|
|
mu.pause();
|
2019-04-28 19:33:43 +02:00
|
|
|
pauseButton.innerHTML = "Resume";
|
2019-04-28 18:56:03 +02:00
|
|
|
}
|
|
|
|
});
|
2019-04-24 17:18:35 +02:00
|
|
|
</script>
|
|
|
|
<style type="text/css">
|
2019-05-03 17:06:32 +02:00
|
|
|
body {
|
2019-07-13 22:18:15 +02:00
|
|
|
background-image:url('{{ page.image }}') ;
|
2019-04-28 18:56:03 +02:00
|
|
|
}
|
2019-07-15 17:49:01 +02:00
|
|
|
#navigation {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2019-07-14 00:51:18 +02:00
|
|
|
|
2019-07-15 17:49:01 +02:00
|
|
|
#wallpaper {
|
|
|
|
background-image: url(/assets/img/world.svg);
|
|
|
|
-webkit-animation: AnimationName 30s ease infinite;
|
|
|
|
-moz-animation: AnimationName 30s ease infinite;
|
|
|
|
animation: AnimationName 30s ease infinite;
|
|
|
|
height: fit-content;
|
|
|
|
@-webkit-keyframes AnimationName {
|
|
|
|
0%{background-position:0% 91%}
|
|
|
|
50%{background-position:100% 10%}
|
|
|
|
100%{background-position:0% 91%}
|
|
|
|
}
|
|
|
|
@-moz-keyframes AnimationName {
|
|
|
|
0%{background-position:0% 91%}
|
|
|
|
50%{background-position:100% 10%}
|
|
|
|
100%{background-position:0% 91%}
|
|
|
|
}
|
|
|
|
@keyframes AnimationName {
|
|
|
|
0%{background-position:0% 91%}
|
|
|
|
50%{background-position:100% 10%}
|
|
|
|
100%{background-position:0% 91%}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.stopfade {
|
|
|
|
animation-play-state: paused;
|
|
|
|
}
|
2019-07-14 00:51:18 +02:00
|
|
|
|
2019-07-09 19:49:14 +02:00
|
|
|
</style>
|