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:
@@ -517,6 +517,17 @@ li.disabled span {
|
||||
padding-right: 1px;
|
||||
}
|
||||
|
||||
.addedJoinBox {
|
||||
position: absolute;
|
||||
bottom: 50px;
|
||||
z-index: 99;
|
||||
left: 0px;
|
||||
text-align: left;
|
||||
background: #2d2d2d;
|
||||
padding: 20px;
|
||||
color: white;
|
||||
}
|
||||
|
||||
#closePlayer{
|
||||
position: fixed;
|
||||
top: 7px;
|
||||
@@ -2991,6 +3002,10 @@ nav ul li:hover, nav ul li.active {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.addedJoinBox {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#playbar{
|
||||
display:block;
|
||||
position: fixed;
|
||||
|
||||
@@ -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