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;
|
padding-right: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.addedJoinBox {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 50px;
|
||||||
|
z-index: 99;
|
||||||
|
left: 0px;
|
||||||
|
text-align: left;
|
||||||
|
background: #2d2d2d;
|
||||||
|
padding: 20px;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
#closePlayer{
|
#closePlayer{
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 7px;
|
top: 7px;
|
||||||
@@ -2991,6 +3002,10 @@ nav ul li:hover, nav ul li.active {
|
|||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.addedJoinBox {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
#playbar{
|
#playbar{
|
||||||
display:block;
|
display:block;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ var Channel = {
|
|||||||
if(window.location.hash == "#small" || inIframe()) {
|
if(window.location.hash == "#small" || inIframe()) {
|
||||||
small_player = true;
|
small_player = true;
|
||||||
document.querySelector("footer").style.display = "none";
|
document.querySelector("footer").style.display = "none";
|
||||||
|
addJoinBox();
|
||||||
}
|
}
|
||||||
if(client) {
|
if(client) {
|
||||||
Helper.addClass(".tabs", "hide");
|
Helper.addClass(".tabs", "hide");
|
||||||
|
|||||||
@@ -1235,6 +1235,10 @@ function before_toast(){
|
|||||||
M.Toast.dismissAll();
|
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() {
|
function scrollChat() {
|
||||||
var current = document.querySelector(".chatTabs .active").getAttribute("href");
|
var current = document.querySelector(".chatTabs .active").getAttribute("href");
|
||||||
if(current == "#channelchat") {
|
if(current == "#channelchat") {
|
||||||
|
|||||||
Reference in New Issue
Block a user