www.lurk.org

LURK www landing page
git clone https://git.lurk.org/repos/www.lurk.org.git
Log | Files | Refs

commit 860fc1c66d0ed98d650b7dc0d4b471f65275b4fb
parent 2a43e7d86686dc2133ad4dfe4a1ac8685776bfa1
Author: ugrnm <ultrageranium@bleu255.com>
Date:   Fri Apr  3 23:28:05 +0200

workaround for a stop/restart method
Diffstat:
muc/player.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/muc/player.js b/muc/player.js
@@ -6,7 +6,7 @@
       var chat_title = document.getElementsByClassName("chatbox-title__text")[0];
       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()">Pause</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="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>';
 
       chat_title.insertAdjacentElement('afterend', element);