www.lurk.org

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

commit 42b1587e4e2f1cbd4b49d52f2e7250e711dfc69a
parent 860fc1c66d0ed98d650b7dc0d4b471f65275b4fb
Author: ugrnm <ultrageranium@bleu255.com>
Date:   Sat Jul  4 19:52:09 +0200

test js for XPUB gradshow video player
Diffstat:
muc/xpubplayer.js | 25+++++++++++++++++++++++++
1 file changed, 25 insertions(+), 0 deletions(-)
diff --git a/muc/xpubplayer.js b/muc/xpubplayer.js
@@ -0,0 +1,25 @@
+(function(){
+
+  function waitForIt(selector, time) {
+    if(document.querySelector(selector)!=null) {
+
+      var chat_title = document.getElementsByClassName("chatbox-title__text")[0];
+      var element = document.createElement("span");
+
+      element.innerHTML = '<div> HELLO HELLO </div>';
+
+      chat_title.insertAdjacentElement('afterend', element);
+
+      return;
+    }
+    else {
+      setTimeout(function() {
+
+        waitForIt(selector, time);
+
+      }, time);
+    }
+  }
+
+  waitForIt(".toggle-smiley", 1000);
+})();