mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Added join-link for iframes
This commit is contained in:
@@ -3,6 +3,7 @@ var Channel = {
|
||||
if(window.location.hash == "#small" || inIframe()) {
|
||||
small_player = true;
|
||||
document.querySelector("footer").style.display = "none";
|
||||
addJoinBox();
|
||||
}
|
||||
if(client) {
|
||||
Helper.addClass(".tabs", "hide");
|
||||
|
||||
@@ -1235,6 +1235,10 @@ function before_toast(){
|
||||
M.Toast.dismissAll();
|
||||
}
|
||||
|
||||
function addJoinBox() {
|
||||
document.querySelector("#video-container").insertAdjacentHTML("beforeend", '<a href="https://zoff.me" target="_blank"><div class="addedJoinBox">Listen directly on https://zoff.me</div></a>');
|
||||
}
|
||||
|
||||
function scrollChat() {
|
||||
var current = document.querySelector(".chatTabs .active").getAttribute("href");
|
||||
if(current == "#channelchat") {
|
||||
|
||||
Reference in New Issue
Block a user