www.lurk.org

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

commit 979b94005c532c465d840cfa8ae7fc90da32153f
parent 103479923b9b1d3e6d06d1f2ceda0a56768fd05a
Author: ugrnm <ultrageranium@bleu255.com>
Date:   Sun Jul  5 00:05:28 +0200

insert before chat
Diffstat:
muc/xpubplayer.js | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/muc/xpubplayer.js b/muc/xpubplayer.js
@@ -3,12 +3,12 @@
   function waitForIt(selector, time) {
     if(document.querySelector(selector)!=null) {
 
-      var chat_title = document.getElementsByClassName("chatbox-title__text")[0];
-      var element = document.createElement("span");
+      var chat_title = document.getElementsByClassName("chat-area col")[0];
+      var element = document.createElement("<div class=\"video-container\" id=\"videoemboddy\">");
 
-      element.innerHTML = '<div class="video-container" id="videoemboddy"><div class="" id="vid1"><video-js id=vid1 width=100% height=100% class="video-js vjs-layout-large vjs-controls-enabled vjs-default-skin vjs-paused vid1-dimensions vjs-controls-enabled vjs-workinghover vjs-v7 vjs-user-active vjs-live" controls data-setup=\'{"controls": true}\'><source src="https://stream.lilimit.com:8081/hls1/stwst.m3u8" type="application/x-mpegURL"></video-js></div></div>';
+      element.innerHTML = '<div class="" id="vid1"><video-js id=vid1 width=100% height=100% class="video-js vjs-layout-large vjs-controls-enabled vjs-default-skin vjs-paused vid1-dimensions vjs-controls-enabled vjs-workinghover vjs-v7 vjs-user-active vjs-live" controls data-setup=\'{"controls": true}\'><source src="https://stream.lilimit.com:8081/hls1/stwst.m3u8" type="application/x-mpegURL"></video-js></div>';
 
-      chat_title.insertAdjacentElement('afterend', element);
+      chat_title.insertBefore(element, chat_titley.firstChild);
 
       return;
     }