2020-07-24 14:34:09 +02:00
|
|
|
---
|
2020-08-03 21:40:11 +02:00
|
|
|
layout: default
|
2020-07-24 14:34:09 +02:00
|
|
|
---
|
|
|
|
{% if page.category == 'releases' %}
|
2020-08-03 21:40:11 +02:00
|
|
|
<script src="{{ relBase }}/assets/js/jquery-3.5.1.min.js"></script>
|
|
|
|
{% include header.html %}
|
|
|
|
|
2020-09-18 12:01:08 +02:00
|
|
|
<section id="play">
|
2020-09-11 19:02:26 +02:00
|
|
|
<div class="album-player">
|
|
|
|
|
2020-08-03 21:40:11 +02:00
|
|
|
<!-- HERE BEGINS MADNESS -->
|
2020-09-11 19:02:26 +02:00
|
|
|
|
2020-08-03 21:40:11 +02:00
|
|
|
{% for album in site.albums %}
|
|
|
|
{% if page.album == album.slug %}
|
|
|
|
{% assign onetracker = album.tracks | size %}
|
|
|
|
<div class="player-wrap">
|
|
|
|
|
|
|
|
<div id="plwrap">
|
2020-08-04 10:48:11 +02:00
|
|
|
<h2>Track list</h2>
|
2020-08-03 21:40:11 +02:00
|
|
|
<ul id="plList">
|
|
|
|
{% for track in album.tracks %}
|
|
|
|
<li class="" {% if onetracker == 1 %}style="border-radius: 5px;"{% endif %}>
|
|
|
|
<div class="plItem">
|
|
|
|
<div class="plNum">{{ track.common.track.no }}.</div>
|
|
|
|
<div class="plTitle">{{ track.common.title }}</div>
|
|
|
|
<div class="plLength">
|
|
|
|
{% assign round_seconds = track.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 }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
2020-07-24 14:34:09 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
2020-08-03 21:40:11 +02:00
|
|
|
</div>
|
|
|
|
<div class="noJSalbum">
|
2020-08-05 10:48:20 +02:00
|
|
|
<div class="coverartwrapper">
|
|
|
|
<div class="coverartwrapped" style="background-image: url({{ page.image }});"></div>
|
|
|
|
</div>
|
2020-08-03 21:40:11 +02:00
|
|
|
{% for track in album.tracks %}
|
|
|
|
|
|
|
|
<div class="plItem">
|
|
|
|
<div class="plNum">{{ track.common.track.no }}.</div>
|
|
|
|
<div class="plTitle"><a href="{{ site.mediaurl }}/{{ track.albumSlug }}/{{ track.trackSlug }}.mp3" target="_blank"
|
|
|
|
rel="noopener">{{ track.common.title }} </a></div>
|
|
|
|
<div class="plLength">
|
|
|
|
{% assign round_seconds = track.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 }}
|
|
|
|
</div>
|
2020-07-24 14:34:09 +02:00
|
|
|
</div>
|
2020-08-03 21:40:11 +02:00
|
|
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2020-08-05 10:48:20 +02:00
|
|
|
|
2020-08-03 21:40:11 +02:00
|
|
|
<div class="coverart">
|
|
|
|
<div class="coverartwrapper">
|
|
|
|
<div id="npImage" class="coverartwrapped"></div>
|
|
|
|
</div>
|
2020-08-05 10:48:20 +02:00
|
|
|
|
2020-08-03 21:40:11 +02:00
|
|
|
{% assign author_id = page.author | prepend: "/authors/" | append: "/" %}
|
|
|
|
{% assign author = site.authors | where: "url", author_id | first %}
|
|
|
|
<div id="author">
|
|
|
|
<div class="bio">
|
|
|
|
<p><a href="mailto:{{ author.email }}"><strong>{{ author.name }}</strong></a></p>
|
|
|
|
<p>{{ author.position }}{% if author.gpg != nil %} | <a target="_blank" rel="noopener"
|
|
|
|
href="{{ author.gpg }}">GPG</a>{% endif %}</p>
|
|
|
|
<p class="date">
|
|
|
|
Published the
|
|
|
|
|
|
|
|
{% include dates.html %}
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
<h6>
|
|
|
|
|
|
|
|
Share this page:
|
|
|
|
</h6>
|
|
|
|
<ul>
|
|
|
|
<a target="_blank" rel="nofollow noopener" title="Share to facebook" alt="Share to facebook"
|
|
|
|
href="https://touch.facebook.com/sharer.php?u={{ site.url }}{{ page.url | xml_escape }}&quote={{ page.title | xml_escape }}%20by%20{{ site.title | xml_escape }}%20via%20{{ site.url }}"
|
|
|
|
class="icon smaller fab fa-facebook-f"><span class="label">Facebook</span></a>
|
|
|
|
<a target="_blank" rel="nofollow noopener" title="Share to twitter" alt="Share to twitter"
|
2020-09-11 19:02:26 +02:00
|
|
|
href="https://twitter.com/share?url={{ site.url }}{{ page.url | xml_escape }}&text={{ page.title | xml_escape }}%20by%20{{ site.title | xml_escape }}%20&hashtags=basspistol"
|
2020-08-03 21:40:11 +02:00
|
|
|
class="icon smaller fab fa-twitter"><span class="label">Twitter</span></a>
|
|
|
|
<a target="_blank" rel="nofollow noopener" title="Share to telegram" alt="Share to telgram"
|
|
|
|
href="https://telegram.me/share/url?url={{ site.url }}{{ page.url }}&text={{ page.title | xml_escape }}%20by%20{{ site.title | xml_escape }}"
|
|
|
|
class="icon smaller fab fa-telegram"><span class="label ">Telegram</span></a>
|
|
|
|
<a target="_blank" rel="nofollow noopener" title="Share to reddit" alt="Share to reddit"
|
|
|
|
href="https://reddit.com/submit/?url={{ site.url }}{{ page.url }}&title={{ page.title | xml_escape }}%20by%20{{ site.title | xml_escape }}"
|
|
|
|
class="icon smaller fab fa-reddit"><span class="label">Reddit</span></a>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
2020-07-24 14:34:09 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-08-03 21:40:11 +02:00
|
|
|
</div>
|
2020-09-11 19:02:26 +02:00
|
|
|
</div>
|
2020-08-12 16:07:37 +02:00
|
|
|
</section>
|
|
|
|
<section class="info">
|
2020-09-11 19:02:26 +02:00
|
|
|
<div class="container">
|
2020-08-12 16:07:37 +02:00
|
|
|
{{ content }}
|
|
|
|
</div>
|
|
|
|
</section>
|
2020-08-03 21:40:11 +02:00
|
|
|
<div id="fixedPlayer" class="showplayer hideplayer">
|
|
|
|
<div id="audiowrap">
|
|
|
|
|
|
|
|
<div id="audio0">
|
|
|
|
<audio id="audio1" preload="metadata" controls="controls">
|
|
|
|
Your browser does not support HTML5 Audio!
|
|
|
|
</audio>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div id="nowPlay">
|
|
|
|
|
|
|
|
{% if onetracker > 1 %}
|
|
|
|
<div id="tracks">
|
|
|
|
<a id="btnPrev"><span class="fas fa-fast-backward"></span></a>
|
|
|
|
<a id="btnNext"><span class="fas fa-fast-forward"></span></a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
<p class="right" id="npTitle" style="font-weight: bold;"></p>
|
|
|
|
<p class="left" id="npAction">Paused...</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
2020-07-24 14:34:09 +02:00
|
|
|
{% include streamer.html %}
|
2020-08-03 21:40:11 +02:00
|
|
|
|
|
|
|
{% if onetracker > 1 %}
|
|
|
|
<!-- Tracks -->
|
2020-07-24 14:34:09 +02:00
|
|
|
{% for track in album.tracks %}
|
|
|
|
|
2020-08-03 21:40:11 +02:00
|
|
|
<section class="track-picker">
|
|
|
|
<div class="full-image" style="background-image:url({{ site.mediaurl }}/{{ track.albumSlug }}/{{ track.trackSlug }}.jpeg);">
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<h2>{{ track.common.title }}</h2>
|
2020-07-24 14:34:09 +02:00
|
|
|
<p>
|
2020-07-28 11:59:32 +02:00
|
|
|
{% assign round_seconds = track.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 }}
|
2020-08-04 17:52:38 +02:00
|
|
|
| <strong>{{ track.common.genre }}</strong></p>
|
|
|
|
<p>{{ track.common.year }}</p>
|
2020-09-11 19:13:45 +02:00
|
|
|
<p><a href="{{ relBase }}/albums/{{ track.slug }}/" class="button"><span class="fas fa-play"></span> Play</a></p>
|
2020-07-24 14:34:09 +02:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
{% endfor %}
|
|
|
|
|
2020-08-03 21:40:11 +02:00
|
|
|
<!-- END Tracks -->
|
|
|
|
{% endif %}
|
2020-07-24 14:34:09 +02:00
|
|
|
|
2020-08-03 21:40:11 +02:00
|
|
|
{% break %} {% endif %} {% endfor %}
|
|
|
|
<!-- HERE ENDS MADNESS -->
|
2020-07-24 14:34:09 +02:00
|
|
|
|
2020-08-03 21:40:11 +02:00
|
|
|
<!-- post Naviation -->
|
|
|
|
<section class="post-navigation">
|
|
|
|
{% if page.previous.url or page.next.url %}
|
2020-09-11 19:02:26 +02:00
|
|
|
<div class="container">
|
|
|
|
<div class="post-nav">
|
|
|
|
{% if page.previous.url %}
|
|
|
|
<h4><a href="{{ relBase }}{{ page.previous.url }}" alt="Read {{ page.previous.title }}"
|
|
|
|
title="Read {{ page.previous.title }}"><span class="fas fa-arrow-left"
|
|
|
|
style="font-size:3em;text-decoration: none;"></span></a></h4>
|
|
|
|
<h3>{{ page.previous.title }}</h3>
|
|
|
|
<p>{{ page.previous.description }}</p>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
<div class="post-nav-next">
|
|
|
|
{% if page.next.url%}
|
|
|
|
<h4><a href="{{ page.next.url }}"><span class="fas fa-arrow-right" style="font-size:3em;"></span></a></h4>
|
|
|
|
<h3>{{ page.next.title }}</h3>
|
|
|
|
<p>{{ page.next.description }}</p>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-08-03 21:40:11 +02:00
|
|
|
{% endif %}
|
|
|
|
</section>
|
|
|
|
<!-- End Post Navigation -->
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
// html5media enables <video> and <audio> tags in all major browsers
|
|
|
|
// External File: http://api.html5media.info/1.1.8/html5media.min.js
|
|
|
|
|
|
|
|
|
|
|
|
// Add user agent as an attribute on the <html> tag...
|
|
|
|
// Inspiration: http://css-tricks.com/ie-10-specific-styles/
|
|
|
|
// var b = document.documentElement;
|
|
|
|
// b.setAttribute('data-useragent', navigator.userAgent);
|
|
|
|
// b.setAttribute('data-platform', navigator.platform);
|
|
|
|
|
|
|
|
|
|
|
|
// HTML5 audio player + playlist controls...
|
|
|
|
// Inspiration: http://jonhall.info/how_to/create_a_playlist_for_html5_audio
|
|
|
|
// Mythium Archive: https://archive.org/details/mythium/
|
|
|
|
jQuery(function ($) {
|
|
|
|
var supportsAudio = !!document.createElement('audio').canPlayType;
|
|
|
|
if (supportsAudio) {
|
|
|
|
var index = 0,
|
|
|
|
playing = false,
|
|
|
|
mediaPath = '',
|
|
|
|
extension = '',
|
|
|
|
tracks = [{% for album in site.albums %}{% if page.album == album.slug %}{% for track in album.tracks %}{
|
|
|
|
"track": {{ track.common.track.no }},
|
|
|
|
"name": "{{ track.common.title }}",
|
|
|
|
"length": "{% assign round_seconds = track.format.duration | round %}{% assign minutes = round_seconds | divided_by: 60 %}{% assign leftover_seconds = minutes | times: 60 %}{{ minutes }}:{{ round_seconds | minus: leftover_seconds }}",
|
|
|
|
"file": "{{ site.mediaurl }}/{{ track.albumSlug }}/{{ track.trackSlug }}",
|
|
|
|
"image": "{{ site.mediaurl }}/{{ track.albumSlug }}/{{ track.trackSlug }}"
|
|
|
|
}{% unless forloop.last %},{% endunless %}{% endfor %}{% break %} {% endif %}{% endfor %}],
|
|
|
|
trackCount = tracks.length,
|
|
|
|
npAction = $('#npAction'),
|
|
|
|
npTitle = $('#npTitle'),
|
|
|
|
npImage = $('#npImage'),
|
|
|
|
audio = $('#audio1').bind('play', function () {
|
|
|
|
playing = true;
|
|
|
|
npAction.text('Playing...');
|
|
|
|
$('#fixedPlayer').removeClass('hideplayer');
|
|
|
|
$("#npImage").addClass('spinnit');
|
|
|
|
}).bind('pause', function () {
|
|
|
|
playing = false;
|
|
|
|
npAction.text('Paused...');
|
|
|
|
|
|
|
|
$("#npImage").removeClass('spinnit');
|
|
|
|
}).bind('ended', function () {
|
|
|
|
npAction.text('Paused...');
|
|
|
|
if ((index + 1) < trackCount) {
|
|
|
|
index++;
|
|
|
|
loadTrack(index);
|
2020-08-05 10:48:20 +02:00
|
|
|
playTrack(index);
|
2020-07-24 14:34:09 +02:00
|
|
|
audio.play();
|
2020-08-03 21:40:11 +02:00
|
|
|
} else {
|
|
|
|
audio.pause();
|
|
|
|
index = 0;
|
|
|
|
loadTrack(index);
|
2020-07-24 14:34:09 +02:00
|
|
|
}
|
2020-08-03 21:40:11 +02:00
|
|
|
}).get(0),
|
|
|
|
btnPrev = $('#btnPrev').click(function () {
|
|
|
|
if ((index - 1) > -1) {
|
|
|
|
index--;
|
|
|
|
loadTrack(index);
|
2020-08-04 10:48:11 +02:00
|
|
|
playTrack(index);
|
2020-08-03 21:40:11 +02:00
|
|
|
if (playing) {
|
|
|
|
audio.play();
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
audio.pause();
|
|
|
|
index = 0;
|
|
|
|
loadTrack(index);
|
2020-07-24 14:34:09 +02:00
|
|
|
}
|
2020-08-03 21:40:11 +02:00
|
|
|
}),
|
|
|
|
btnNext = $('#btnNext').click(function () {
|
|
|
|
if ((index + 1) < trackCount) {
|
|
|
|
index++;
|
|
|
|
loadTrack(index);
|
2020-08-04 10:48:11 +02:00
|
|
|
playTrack(index);
|
2020-08-03 21:40:11 +02:00
|
|
|
if (playing) {
|
|
|
|
audio.play();
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
audio.pause();
|
|
|
|
index = 0;
|
|
|
|
loadTrack(index);
|
|
|
|
}
|
|
|
|
}),
|
|
|
|
li = $('#plList li').click(function () {
|
|
|
|
var id = parseInt($(this).index());
|
|
|
|
if (id !== index || playing == false) {
|
|
|
|
playTrack(id);
|
|
|
|
}else {
|
|
|
|
audio.pause();
|
|
|
|
}
|
|
|
|
|
|
|
|
}),
|
|
|
|
loadTrack = function (id) {
|
|
|
|
|
|
|
|
npTitle.text(tracks[id].name);
|
|
|
|
index = id;
|
|
|
|
audio.src = mediaPath + tracks[id].file + extension;
|
|
|
|
$('audio').attr("data-matomo-title", tracks[id].name);
|
|
|
|
$("#npImage").attr('style', 'background-image:url(' + tracks[id].image + '.jpeg)');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
playTrack = function (id) {
|
|
|
|
$('.plSel').removeClass('plSel');
|
|
|
|
$('#plList li:eq(' + id + ')').addClass('plSel');
|
|
|
|
loadTrack(id);
|
|
|
|
audio.play();
|
2020-07-24 14:34:09 +02:00
|
|
|
|
2020-08-03 21:40:11 +02:00
|
|
|
};
|
|
|
|
extension = audio.canPlayType('audio/mpeg') ? '.mp3' : audio.canPlayType('audio/ogg') ? '.ogg' : '';
|
|
|
|
loadTrack(index);
|
|
|
|
}
|
|
|
|
});
|
2020-07-24 14:34:09 +02:00
|
|
|
|
2020-08-03 21:40:11 +02:00
|
|
|
</script>
|
2020-07-24 14:34:09 +02:00
|
|
|
|
|
|
|
|
2020-08-03 21:40:11 +02:00
|
|
|
{% else %}
|
|
|
|
{% include header.html %}
|
2020-09-11 19:02:26 +02:00
|
|
|
|
2020-08-05 10:48:20 +02:00
|
|
|
<section class="info" id="read">
|
2020-09-11 19:02:26 +02:00
|
|
|
<div class="info-pages">
|
|
|
|
|
2020-08-03 21:40:11 +02:00
|
|
|
{{ content }}
|
2020-09-11 19:02:26 +02:00
|
|
|
{% if page.link %}
|
|
|
|
<p><a href="{{ page.link }}?ref=TheMusicSyndicateWashere" target="_bank" rel="noopener" class="button">👀 Check it out!</a></p>
|
|
|
|
{% endif %}
|
2020-08-03 21:40:11 +02:00
|
|
|
</div>
|
|
|
|
</section>
|
2020-09-11 19:02:26 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- post Naviation -->
|
|
|
|
<section class="post-navigation">
|
|
|
|
{% if page.previous.url or page.next.url %}
|
|
|
|
<div class="container">
|
|
|
|
<div class="post-nav">
|
|
|
|
{% if page.previous.url %}
|
|
|
|
<h4><a href="{{ relBase }}{{ page.previous.url }}" alt="Read {{ page.previous.title }}" title="Read {{ page.previous.title }}"><span
|
|
|
|
class="fas fa-arrow-left" style="font-size:3em;text-decoration: none;"></span></a></h4>
|
|
|
|
<h3>{{ page.previous.title }}</h3>
|
|
|
|
<p>{{ page.previous.description }}</p>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
<div class="post-nav-next">
|
|
|
|
{% if page.next.url%}
|
|
|
|
<h4><a href="{{ page.next.url }}"><span class="fas fa-arrow-right" style="font-size:3em;"></span></a></h4>
|
|
|
|
<h3>{{ page.next.title }}</h3>
|
|
|
|
<p>{{ page.next.description }}</p>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</section>
|
2020-07-24 14:34:09 +02:00
|
|
|
{% endif %}
|