last modifs

This commit is contained in:
sakrecoer 2020-07-10 11:46:33 +02:00
parent 68a46b770e
commit 3bc75bad82
16 changed files with 273 additions and 225 deletions

View file

@ -183,4 +183,46 @@
<meta name="twitter:image" content="{{ site.url }}{{ page.image }}" />
<!-- END seo.html -->
{% endif %}
{% endif %}
{% if page.url == '/radio/' %}
<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>" + "<span style='font-size:14px;'>Now Playing:</span> " + "<br/>";
output += "<strong>" + json.icestats.source[1].title + "</strong> by <strong>" + json.icestats.source[1].artist + "</strong></p>";
output += "<p style='font-size:14px;'>" + json.icestats.source[0].listeners + " peers are listening in MP3 <br />";
output += json.icestats.source[1].listeners + " peers are listening in OGG</p>";
document.getElementById("radioPlaceholder").innerHTML=output;
});
}
setInterval(getData, 7000);
$(function() {
getData();
});
</script>
{% endif %}