mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Removing some functions from iframed-player
This commit is contained in:
@@ -4,6 +4,9 @@ var Channel = {
|
||||
small_player = true;
|
||||
document.querySelector("footer").style.display = "none";
|
||||
addJoinBox();
|
||||
hideAllExtra();
|
||||
document.querySelectorAll(".tab.col.s3")[1].remove();
|
||||
document.querySelectorAll(".tab.col.s3")[1].remove();
|
||||
}
|
||||
if(client) {
|
||||
Helper.addClass(".tabs", "hide");
|
||||
@@ -212,7 +215,7 @@ var Channel = {
|
||||
document.getElementById("share-join-qr").setAttribute("src", "https://chart.googleapis.com/chart?chs=221x221&cht=qr&choe=UTF-8&chld=L|1&chl="+shareCodeUrl);
|
||||
Helper.setHtml("#channel-name-join", "client." + window.location.hostname + "/" + encodeURIComponent(chan.toLowerCase()));
|
||||
} else if(small_player) {
|
||||
document.querySelector("#channel-share-modal .modal-content").innerHTML = "<p>To listen to this channel, go to</p><p>https://zoff.me/" + encodeURIComponent(chan.toLowerCase()) + "</p><img src='/assets/images/favicon.png' height='100' width='100' alt='circle-logo-zoff'>";
|
||||
document.querySelector("#channel-share-modal .modal-content").innerHTML = "<p>To listen to this channel with more features, go to</p><p>https://zoff.me/" + encodeURIComponent(chan.toLowerCase()) + "</p><img src='/assets/images/favicon.png' height='100' width='100' alt='circle-logo-zoff'>";
|
||||
M.Modal.getInstance(document.getElementById("channel-share-modal")).open();
|
||||
if(!Helper.mobilecheck()) {
|
||||
setTimeout(function() {
|
||||
|
||||
@@ -1248,6 +1248,17 @@ function scrollChat() {
|
||||
}
|
||||
}
|
||||
|
||||
function hideAllExtra() {
|
||||
document.querySelector(".settings-collapsible").children[0].style.display = "none";
|
||||
document.querySelector(".settings-collapsible").children[2].style.display = "none";
|
||||
document.querySelector(".settings-collapsible").children[3].style.display = "none";
|
||||
document.querySelector(".settings-collapsible").children[4].style.display = "none";
|
||||
document.querySelector(".settings-collapsible").children[5].style.display = "none";
|
||||
document.querySelector(".settings-collapsible").children[6].style.display = "none";
|
||||
document.querySelector(".settings-collapsible").children[7].style.display = "none";
|
||||
|
||||
}
|
||||
|
||||
function searchTimeout(event) {
|
||||
search_input = document.getElementsByClassName("search_input")[0].value;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user