basspistol.com/index.html

145 lines
6.1 KiB
HTML
Raw Normal View History

2019-04-01 23:16:35 +02:00
---
title: Music Syndicate
subtitle: Basspistol
2019-04-26 14:23:00 +02:00
description: >-
Homepage of Basspistol, The Outernational Music Syndicate established in 2010.
The underground is dead, Long Live the Underground!
2019-04-01 23:16:35 +02:00
keywords: >-
Basspistol, Outernational, Music, Syndicate, Homepage, Collective, Free,
Culture,
2019-04-02 00:28:32 +02:00
video_path: /assets/vid/intro_loop_.mp4
2019-04-02 00:34:34 +02:00
poster_image: /assets/vid/intro_loop_.jpg
2019-04-01 23:16:35 +02:00
---
2019-02-28 17:06:17 +01:00
<!DOCTYPE html>
<html>
<head>
2019-12-16 12:12:57 +01:00
{% include relBase.html %}
2019-04-01 23:16:35 +02:00
{% include metahead.html %}
2019-11-05 15:18:23 +01:00
{% include matomo.html %}
2019-02-28 17:06:17 +01:00
<script type="text/javascript">
function generateRandomPosts()
{
$.getJSON("/posts.json", function(data) {
console.log("[posts.json loaded for random posts]");
var postsCount = data.length;
var posts = data;
var randomIndexUsed = [];
var counter = 0;
var numberOfPosts = 1;
var divRandomPosts = $("#random_posts");
divRandomPosts.append('<h1>Releases</h1>');
while (counter < numberOfPosts)
{
var randomIndex = Math.floor(Math.random() * postsCount);
if (randomIndexUsed.indexOf(randomIndex) == "-1")
{
var postHREF = posts[randomIndex].href;
var postImg = posts[randomIndex].img;
var postTitle = posts[randomIndex].title;
if (counter == (numberOfPosts - 1))
{
divRandomPosts.append('<a href="' + postHREF + '" title="' + postTitle + '"><div class="highlights" style="background-image: url(' + postImg + ')" alt="' + postTitle + '"></div><h3>' + postTitle+ '</h3></a><p>One of our releases, randomly selected just for you.</p>');
}
else
{
divRandomPosts.append('<a href="' + postHREF + '" title="' + postTitle + '"><div class="highlights" style="background-image: url(' + postImg + ')" alt="' + postTitle + '"></div><h3>' + postTitle + '</h3></a><p>One of our releases, randomly selected just for you.</p>');
}
randomIndexUsed.push(randomIndex);
counter++;
}
}
});
}
$(document).ready(function() {
generateRandomPosts();
});
</script>
<script type="text/javascript">
function getData() {
$.getJSON('https://radio.basspistol.com/status-json.xsl', function(json) {
output = "<p>" + "Now Playing: " + "</p>";
output += "<p><strong>" + json.icestats.source[1].title + "</strong> <br />by<br /><strong>" + json.icestats.source[1].artist + "</strong></p>";
output += "<p>";
output += json.icestats.source[0].listeners + " peers are listening in <a href='https://radio.basspistol.com/radio.mp3.m3u'>MP3</a>";
output += "</p>";
output += "<p>";
output += json.icestats.source[1].listeners + " peers are listening in <a href='https://radio.basspistol.com/radio.ogg.m3u'>OGG</a>";
output += "</p>";
document.getElementById("radioPlaceholder").innerHTML=output;
});
}
setInterval(getData, 7000);
$(function() {
getData();
});
</script>
</head>
<body>
2019-04-01 23:16:35 +02:00
{% include navmenu.html %}
2019-02-28 17:06:17 +01:00
<div id="content">
2019-04-01 23:16:35 +02:00
{% include videopageheader.html %}
2019-02-28 17:06:17 +01:00
<div class="fitter">
<div class="records" id="random_posts">
</div>
<div class="records">
<h1>Highlights</h1>
2019-04-01 23:16:35 +02:00
{% for page in site.categories.highlights offset: 0 limit: 1 %}
2019-12-16 12:12:57 +01:00
<a href="{{ relBase }}{{ page.url }}" title="{{ page.title }}"><div class="highlights" style="background-image: url('{{ relBase }}{{ page.image }}')">
2019-04-01 23:16:35 +02:00
</div><h3>{{ page.title }} </h3></a>
2019-04-26 13:29:58 +02:00
<p class="editable">
Highlights are music-things we think you want to discover. Tracks, articles, videos, interviews and reviews, curated but also original content. They are delivered to you daily. Here or via RSS.
</p>
2019-04-01 23:16:35 +02:00
{% endfor %}
2019-02-28 17:06:17 +01:00
</div>
2019-04-02 01:39:49 +02:00
<div class="articles editable">
2019-02-28 17:06:17 +01:00
<h1>What the funk?</h1>
2019-04-13 16:44:23 +02:00
<p>We are The Outernational Music Syndicate, we believe in music. The Music Industry is healthy and blossoming like never before, there is no crisis in this industry, only greed and middlemen.</p>
2019-06-19 16:32:49 +02:00
<p>Basspistol is a middleman slayer but mostly your magic magnifying glass, allowing you to see what happens when the sweet artists get into to the salty ocean of creativity. This is what we work for. Nothing less, nothing more. And if you want to, <a href="/artists/">we</a> will <a href="/radio">share it with you.</a></p>
2019-04-13 16:44:23 +02:00
<p>We operate this website using inclusively open source tools. We care about you: we do not track what you look at, which article drives traffic or which gender prefers what genre.<br /><br />We are <strong>NOT</strong> data driven, instead our passion is our engine and the freedom we posses allows us to navigate time, without having to care about being profitable.</p>
2019-02-28 17:06:17 +01:00
</div>
<div class="records">
<h1>RADIO</h1>
<button id="mu_pause">Play</button>
<div id="radioPlaceholder"></div>
2019-08-25 23:09:06 +02:00
<h2>Radio under maintenance.</h2>
2019-08-25 23:12:23 +02:00
<p>Hopefully back soon.</p>
2019-02-28 17:06:17 +01:00
</div>
2019-04-01 23:16:35 +02:00
{% include footer.html %}
2019-02-28 17:06:17 +01:00
</div>
</div>
<audio preload="none">
<source src="https://radio.basspistol.com/radio.mp3" type="audio/mpeg" />
<source src="https://radio.basspistol.com/radio.ogg" type="audio/ogg" />
<h1>Your browser isn't ready for so much hotness. Use these links instead: <a href="https://radio.basspistol.com/radio.ogg.m3u">OGG</a> or <a href="https://radio.basspistol.com/radio.mp3.m3u">MP3</a></h1>.
</audio>
<script type="text/javascript">
var mu = document.getElementsByTagName("audio")[0];
var pauseButton = document.getElementById("mu_pause");
function muFade() {
mu.classList.add("stopfade");
}
mu.addEventListener('ended', function() {
// only functional if "loop" is removed
mu.pause();
mu.currentTime=0;
// qq IE10
muFade();
});
pauseButton.addEventListener("click", function() {
mu.classList.toggle("stopfade");
if (mu.paused) {
mu.play();
pauseButton.innerHTML = "Pause";
} else {
mu.pause();
pauseButton.innerHTML = "Resume";
}
});
</script>
</body>
</html>