small change - more testing

This commit is contained in:
ccl 2020-04-17 00:28:11 +02:00
parent 5662364456
commit 4c9d0cb917

View File

@ -25,7 +25,7 @@ Date: 2017-04-09
var chat_title = document.getElementsByClassName("chatbox-title__text")[0]; var chat_title = document.getElementsByClassName("chatbox-title__text")[0];
var element = document.createElement("span"); var element = document.createElement("span");
element.innerHTML = '<audio id="player" preload="none" src="https://echo.lurk.org:999/echochamber"></audio><div><button onclick="document.getElementById(\'player\').play()">Play</button><button onclick="document.getElementById(\'player\').pause();document.getElementById(\'player\').src=document.getElementById(\'player\').src;">Stop</button><button onclick="document.getElementById(\'player\').volume += 0.1">Vol +</button><button onclick="document.getElementById(\'player\').volume -= 0.1">Vol -</button></div>'; element.innerHTML = '<audio id="player" preload="none" src="http://w-i-t-m.net:8001/radiodrama"></audio><div><button onclick="document.getElementById(\'player\').play()">Play</button><button onclick="document.getElementById(\'player\').pause();document.getElementById(\'player\').src=document.getElementById(\'player\').src;">Stop</button><button onclick="document.getElementById(\'player\').volume += 0.1">Vol +</button><button onclick="document.getElementById(\'player\').volume -= 0.1">Vol -</button></div>';
chat_title.insertAdjacentElement('afterend', element); chat_title.insertAdjacentElement('afterend', element);