basspistol.com/radio.html

115 lines
3.7 KiB
HTML
Raw Normal View History

2019-04-01 23:16:35 +02:00
---
title: Basspistol Libre Radio
subtitle: Radio
2019-04-14 11:09:20 +02:00
description: >-
Basspistol Radio Station! 777% without commercials! RobotDJ-sets and live
interventions! This is the sound of freedom.
keywords: 'Radio, basspistol, Live, Music, Broadcast, Stream,'
2019-04-02 00:28:32 +02:00
video_path: /assets/vid/radio.mp4
2019-04-02 00:34:34 +02:00
poster_image: /assets/vid/radio.jpg
2019-04-01 23:16:35 +02:00
---
2019-04-14 11:09:20 +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='application/ld+json'>
{
"@context": "http://www.schema.org",
"@type": "RadioStation",
"name": "Basspistol Libre Radio",
"url": "https://basspistol.com/radio",
"logo": "https://basspistol.com/assets/img/basspistol_est_2010_square_bluegreen.jpg",
"image": "https://basspistol.com/assets/img/basspistol_est_2010_square_bluegreen.jpg",
"description": "Unexpected and Impossible Music. Live interventions and special guests. This is Libre music!",
"address": {
"@type": "PostalAddress",
"addressLocality": "Geneva",
"addressRegion": "Geneva",
"postalCode": "1201",
"addressCountry": "Switzerland"
},
"geo": {
"@type": "GeoCoordinates",
"latitude": "46.204391",
"longitude": "6.143158"
}
}
</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="articles" style="text-align:center">
<button id="mu_pause">Play Radio</button>
</div>
<div class="articles">
<div id="radioPlaceholder"></div>
</div>
2019-04-01 23:16:35 +02:00
{% include footer.html %}
2019-02-28 17:06:17 +01:00
</div>
</div>
2020-01-21 15:42:52 +01:00
<audio preload="none" data-matomo-title="Basspistol Radio">
2019-02-28 17:06:17 +01:00
<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>
</div>
<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 Radio";
} else {
mu.pause();
pauseButton.innerHTML = "Resume Radio";
}
});
</script>
</body>
</html>