Added join-link for iframes

This commit is contained in:
Kasper Rynning-Tønnesen
2018-09-23 21:15:10 +02:00
parent f5e9424161
commit df2bb4809e
3 changed files with 20 additions and 0 deletions

View File

@@ -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");

View File

@@ -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") {