Browse Source

add extra stream to page

master
bnjmn 9 months ago
parent
commit
28a61a9833
  1. 23
      index.html

23
index.html

@ -156,7 +156,7 @@
<!-- if online: --> <!-- if online: -->
<!-- " ♪ . *⁽⁽ ◝꒰´꒳`∗꒱◟ ₎₎₊· * ON AIR ♪ ♬ ヾclick on the buttons on the right side to display the different modalities ノ ♬ ♪ ON AIR ♫♪.ılılıll|̲̅̅●̲̅̅|̲̅̅=̲̅̅|̲̅̅●̲̅̅|llılılı.♫♪ " --> <!-- " ♪ . *⁽⁽ ◝꒰´꒳`∗꒱◟ ₎₎₊· * ON AIR ♪ ♬ ヾclick on the buttons on the right side to display the different modalities ノ ♬ ♪ ON AIR ♫♪.ılılıll|̲̅̅●̲̅̅|̲̅̅=̲̅̅|̲̅̅●̲̅̅|llılılı.♫♪ " -->
<marquee scrolldelay="92">" ♪ . *⁽⁽ ◝꒰´꒳`∗꒱◟ ₎₎₊· * You're listening to Learning Palestine - Until Liberation mixtape 10:00-22:00 CET 20.10.2023 ♪ ♬ ヾ *⁽⁽ ◝꒰´꒳`∗꒱◟ ₎₎₊· * "</marquee> <marquee scrolldelay="92">" ♪ . *⁽⁽ ◝꒰´꒳`∗꒱◟ ₎₎₊· * Tune in for the 8M March, streamed from Utrecht and Rotterdam on Friday 8th March from 18:00 onwards ♪ ♬ ヾ *⁽⁽ ◝꒰´꒳`∗꒱◟ ₎₎₊· * "</marquee>
<!-- if offline: --> <!-- if offline: -->
@ -169,16 +169,24 @@
<source src="https://voice.vvvvvvaria.org/live" type="audio/mpeg"> <source src="https://voice.vvvvvvaria.org/live" type="audio/mpeg">
Your browser does not support the audio element. Try the direct link to the audio below! Your browser does not support the audio element. Try the direct link to the audio below!
</audio> </audio>
<audio id="player2" preload="none">
<source src="https://radio.goodtimesbadtimes.club:8030/radio.mp3" type="audio/mpeg">
Your browser does not support the audio element. Try the direct link to the audio below!
</audio>
<p> <p>
Press play to tune in! It might take a few seconds to load...<br> Press play to tune in! It might take a few seconds to load...<br>
Druk op "play" om te luisteren! Het kan een paar seconden duren voordat je iets hoort... Druk op "play" om te luisteren! Het kan een paar seconden duren voordat je iets hoort...
</p> </p>
<div class="audio-buttons"> <div class="audio-buttons">
<button id="audioButton" class="stream-button b-narrow" onclick="Play()">Play</button> <button id="audioButton" class="stream-button b-narrow" onclick="Play()">Play from Rotterdam</button>
<button id="audioButton2" class="stream-button b-narrow" onclick="Play()">Play from Utrecht</button>
<script> <script>
var audio = document.getElementById("player"); var audio = document.getElementById("player");
audio.volume = 0.6; audio.volume = 0.6;
var butn = document.getElementById("audioButton"); var butn = document.getElementById("audioButton");
var audio2 = document.getElementById("player2");
audio.volume = 0.6;
var butn2 = document.getElementById("audioButton2");
function Play() { function Play() {
if(audio.paused) { if(audio.paused) {
@ -190,6 +198,17 @@
butn.innerText = "Play"; butn.innerText = "Play";
} }
} }
function Play() {
if(audio.paused) {
audio2.play();
butn2.innerText = "Pause";
}
else {
audio2.pause();
butn2.innerText = "Play";
}
}
</script> </script>
<button class="stream-button b-narrow vol" onclick="document.getElementById('player').volume += 0.1">Vol +</button> <button class="stream-button b-narrow vol" onclick="document.getElementById('player').volume += 0.1">Vol +</button>
<button class="stream-button b-narrow vol" onclick="document.getElementById('player').volume -= 0.1">Vol -</button> <button class="stream-button b-narrow vol" onclick="document.getElementById('player').volume -= 0.1">Vol -</button>

Loading…
Cancel
Save