2019-04-01 23:16:35 +02:00
|
|
|
---
|
2020-07-09 10:15:00 +02:00
|
|
|
layout: default
|
2019-04-01 23:16:35 +02:00
|
|
|
---
|
2020-07-09 10:15:00 +02:00
|
|
|
|
2019-12-16 12:12:57 +01:00
|
|
|
{% include relBase.html %}
|
2020-07-09 10:15:00 +02:00
|
|
|
<!-- Banner -->
|
2020-09-08 18:07:38 +02:00
|
|
|
{% for album in site.albums %}
|
|
|
|
{% if album.slug == page.albumSlug %}
|
|
|
|
{% assign onetracker = album.tracks | size %}
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
2020-07-11 16:33:27 +02:00
|
|
|
|
2020-09-08 18:07:38 +02:00
|
|
|
<div id="trackArt">
|
|
|
|
<section>
|
|
|
|
<div class="coverartwrapper">
|
|
|
|
<div class="coverartwrapped" id="coverart" style="background-image: url({{ site.mediaurl }}/{{ page.slug }}.jpeg);"></div>
|
2020-07-09 10:15:00 +02:00
|
|
|
</div>
|
2020-09-08 18:07:38 +02:00
|
|
|
<div class="playbutton hideWhenNoJS">
|
2020-09-25 12:15:26 +02:00
|
|
|
<a id="mu_pause" class="button">🔊 Play!</a>
|
2020-07-28 12:11:59 +02:00
|
|
|
</div>
|
2020-07-09 10:15:00 +02:00
|
|
|
</section>
|
2020-09-08 18:07:38 +02:00
|
|
|
</div>
|
|
|
|
<!-- Content -->
|
|
|
|
<div id="trackInfo">
|
2020-09-11 13:33:38 +02:00
|
|
|
|
2020-11-18 12:02:10 +01:00
|
|
|
<section>
|
|
|
|
<h1 style="margin-top:80px;">{{ page.common.title }}</h1>
|
|
|
|
<p>{% for style in page.common.genre %}{{ style }}{% endfor %} by <strong>{{ page.common.artist }}</strong></p>
|
|
|
|
{% for post in site.posts %}
|
|
|
|
{% if post.album == page.albumSlug %}
|
|
|
|
<p>From the {{ page.common.year }} {% if onetracker > 1 %}release{% else %}single{% endif %} <a href="{{ relBase }}{{ post.url }}">"{{ page.common.album }}"</a></p>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
2020-09-08 18:07:38 +02:00
|
|
|
|
2020-11-18 12:02:10 +01:00
|
|
|
<p><strong>{% assign round_seconds = page.format.duration | round %}{% assign minutes = round_seconds | divided_by: 60 %}{% assign leftover_seconds = minutes | times: 60 %}{{ minutes }}:{% assign seconds_without_zero = round_seconds | minus: leftover_seconds %}{% if seconds_without_zero < 10 %}0{% endif %}{{ seconds_without_zero }}</strong></p>
|
2020-09-08 18:07:38 +02:00
|
|
|
|
2020-11-18 12:02:10 +01:00
|
|
|
{% include author.html %}
|
2020-09-08 18:07:38 +02:00
|
|
|
|
2020-11-18 12:02:10 +01:00
|
|
|
<p class="noJSalbum"><a class="button" target="_blank" rel="noopener" href="{{ site.mediaurl }}/{{ page.albumSlug }}/{{ page.trackSlug }}.mp3"><span class="fas fa-play"></span> Play!</a></p>
|
2020-09-08 18:07:38 +02:00
|
|
|
|
2020-11-18 12:02:10 +01:00
|
|
|
<!-- Content -->
|
2020-07-10 16:54:52 +02:00
|
|
|
|
2020-11-18 12:02:10 +01:00
|
|
|
{% if page.all.UNSYNCEDLYRICS and page.all.USLT %}
|
|
|
|
<div class="info">
|
|
|
|
<p>
|
|
|
|
{{ page.all.USLT.text | newline_to_br }}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
{% elsif page.all.USLT and page.all.UNSYNCEDLYRICS == nil %}
|
|
|
|
<div class="info">
|
|
|
|
<p>
|
|
|
|
{{ page.all.USLT.text | newline_to_br }}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
{% elsif page.all.UNSYNCEDLYRICS and page.all.USLT == nil %}
|
|
|
|
<div class="info">
|
|
|
|
<p>
|
|
|
|
{{ page.all.UNSYNCEDLYRICS | newline_to_br }}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
{% elsif page.all.lyrics %}
|
|
|
|
<div class="info">
|
|
|
|
<p>
|
|
|
|
{{ page.all.lyrics | newline_to_br }}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
2020-09-25 15:31:31 +02:00
|
|
|
<p>
|
2020-11-18 12:02:10 +01:00
|
|
|
{{ page.all.Comment }}
|
2020-09-25 15:31:31 +02:00
|
|
|
</p>
|
2020-09-11 13:33:38 +02:00
|
|
|
|
2020-11-18 12:02:10 +01:00
|
|
|
</section>
|
2020-09-08 18:07:38 +02:00
|
|
|
|
2020-11-18 12:02:10 +01:00
|
|
|
<!-- post Naviation -->
|
|
|
|
<section class="post-navigation">
|
2020-09-25 12:15:26 +02:00
|
|
|
|
2020-11-18 12:02:10 +01:00
|
|
|
<div class="post-nav">
|
2020-09-25 12:15:26 +02:00
|
|
|
|
2020-11-18 12:02:10 +01:00
|
|
|
<h4><a href="{{ relBase }}/tracks/{{ page.previousTrack.slug }}/" alt="Read {{ page.previousTrack.common.title }}" title="Read {{ page.previousTrack.common.title }}"><span
|
|
|
|
class="fas fa-arrow-left" style="font-size:3em;text-decoration: none;"></span></a></h4>
|
|
|
|
<h3>{{ page.previousTrack.common.title }}</h3>
|
|
|
|
<p>{{ page.previousTrack.common.description }}</p>
|
2020-09-25 12:15:26 +02:00
|
|
|
|
2020-11-18 12:02:10 +01:00
|
|
|
</div>
|
|
|
|
<div class="post-nav-next">
|
2020-09-25 12:15:26 +02:00
|
|
|
|
2020-11-18 12:02:10 +01:00
|
|
|
<h4><a href="{{ relBase }}/tracks/{{ page.nextTrack.slug }}/" alt="Read {{ page.nextTrack.common.title }}" title="Read {{ page.nextTrack.common.title }}"><span class="fas fa-arrow-right" style="font-size:3em;"></span></a></h4>
|
|
|
|
<h3>{{ page.nextTrack.common.title }}</h3>
|
|
|
|
<p>{{ page.nextTrack.common.description }}</p>
|
2020-09-25 12:15:26 +02:00
|
|
|
|
2020-11-18 12:02:10 +01:00
|
|
|
</div>
|
2020-09-25 12:15:26 +02:00
|
|
|
|
2020-11-18 12:02:10 +01:00
|
|
|
</section>
|
|
|
|
{% include footer.html %}
|
|
|
|
<!-- End Post Navigation -->
|
2020-09-08 18:07:38 +02:00
|
|
|
</div>
|
2020-07-09 10:15:00 +02:00
|
|
|
|
|
|
|
<!-- Audio player-->
|
2020-09-08 18:07:38 +02:00
|
|
|
|
|
|
|
<div id="fixedPlayer" class="showplayer hideplayer">
|
|
|
|
<div id="audiowrap">
|
|
|
|
|
|
|
|
<div id="audio0">
|
2020-09-10 11:44:00 +02:00
|
|
|
<audio controls autoplay preload="metadata" data-matomo-title="{{ page.common.title }} - {{ page.common.album }}">
|
2020-09-08 18:07:38 +02:00
|
|
|
<source src="{{ site.mediaurl }}/{{ page.slug }}.mp3" type="audio/mpeg" ontimeupdate='updateTrackTime(this);' />
|
|
|
|
<h1>Your browser isn't ready for so much hotness. Use the download-link instead.</h1>.
|
|
|
|
</audio>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div id="nowPlay">
|
|
|
|
|
|
|
|
|
|
|
|
<div id="tracks">
|
|
|
|
|
2020-09-25 12:15:26 +02:00
|
|
|
<a id="btnPrev" href="{{ relBase }}/tracks/{{ page.previousTrack.slug }}/" alt="Previous track" title="Previous track"><span class="fas fa-fast-backward"></span></a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="btnNext" href="{{ relBase }}/tracks/{{ page.nextTrack.slug }}/" alt="Next track" title="Next track"><span class="fas fa-fast-forward"></span></a>
|
|
|
|
|
2020-09-08 18:07:38 +02:00
|
|
|
</div>
|
|
|
|
<p id="npTitle" style="font-weight: bold;">{{ page.common.title }} </p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-07-09 10:15:00 +02:00
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
function loadUrl(newLocation) {
|
2019-04-01 23:16:35 +02:00
|
|
|
window.location = newLocation;
|
|
|
|
return false;
|
2020-07-09 10:15:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
var mu = document.getElementsByTagName("audio")[0];
|
|
|
|
var pauseButton = document.getElementById("mu_pause");
|
|
|
|
var spincover = document.getElementById("coverart");
|
2020-09-08 18:07:38 +02:00
|
|
|
var fixedplayer = document.getElementById("fixedPlayer");
|
2020-07-09 10:15:00 +02:00
|
|
|
|
|
|
|
mu.addEventListener('ended', function () {
|
2019-04-01 23:16:35 +02:00
|
|
|
// only functional if "loop" is removed
|
|
|
|
mu.pause();
|
2020-07-09 10:15:00 +02:00
|
|
|
mu.currentTime = 0;
|
2020-09-25 12:15:26 +02:00
|
|
|
loadUrl("{{ relBase }}/tracks/{{ page.nextTrack.slug }}/"); return false;
|
2020-07-09 10:15:00 +02:00
|
|
|
});
|
|
|
|
mu.onplaying = function() {
|
2020-09-25 12:15:26 +02:00
|
|
|
pauseButton.innerHTML = "⏸️ Pause";
|
2020-09-08 18:07:38 +02:00
|
|
|
fixedplayer.classList.remove("hideplayer");
|
|
|
|
|
2020-07-09 10:15:00 +02:00
|
|
|
};
|
2019-04-01 23:16:35 +02:00
|
|
|
|
2020-07-09 10:15:00 +02:00
|
|
|
pauseButton.addEventListener("click", function () {
|
2019-04-01 23:16:35 +02:00
|
|
|
if (mu.paused) {
|
2020-07-09 10:15:00 +02:00
|
|
|
mu.play();
|
|
|
|
|
2019-04-01 23:16:35 +02:00
|
|
|
}
|
2020-07-09 10:15:00 +02:00
|
|
|
else {
|
|
|
|
mu.pause();
|
2020-09-08 18:07:38 +02:00
|
|
|
|
|
|
|
|
2020-07-09 10:15:00 +02:00
|
|
|
}
|
|
|
|
});
|
2020-09-08 18:07:38 +02:00
|
|
|
mu.addEventListener('playing', function () {
|
|
|
|
spincover.classList.add("spinnit");
|
|
|
|
spincover.classList.remove("paused");
|
2020-07-09 10:15:00 +02:00
|
|
|
});
|
2020-09-08 18:07:38 +02:00
|
|
|
mu.addEventListener('pause', function () {
|
|
|
|
spincover.classList.add("paused");
|
2020-09-25 12:15:26 +02:00
|
|
|
pauseButton.innerHTML = "🔊 Resume";
|
2020-09-08 18:07:38 +02:00
|
|
|
});
|
|
|
|
|
2019-04-01 23:16:35 +02:00
|
|
|
|
2020-07-28 15:51:46 +02:00
|
|
|
</script>
|