diff --git a/server/public/assets/js/channel.js b/server/public/assets/js/channel.js index cdd59282..c977e889 100644 --- a/server/public/assets/js/channel.js +++ b/server/public/assets/js/channel.js @@ -3,8 +3,8 @@ var Channel = { if(window.location.hash == "#small" || inIframe()) { small_player = true; document.querySelector("footer").style.display = "none"; - addJoinBox(); - hideAllExtra(); + //addJoinBox(); + //hideAllExtra(); //document.querySelectorAll(".tab.col.s3")[1].remove(); //document.querySelectorAll(".tab.col.s3")[1].remove(); } @@ -211,19 +211,19 @@ var Channel = { if(!client) { - if(!Helper.mobilecheck() && !small_player) { + if(!Helper.mobilecheck()) { var shareCodeUrl = window.location.protocol + "//client."+window.location.hostname+"/r/"+btoa(encodeURIComponent(chan.toLowerCase())); 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) { + } /*else if(small_player) { document.querySelector("#channel-share-modal .modal-content").innerHTML = "

To listen to this channel with more features, go to

https://zoff.me/" + encodeURIComponent(chan.toLowerCase()) + "

circle-logo-zoff"; - M.Modal.getInstance(document.getElementById("channel-share-modal")).open(); + //M.Modal.getInstance(document.getElementById("channel-share-modal")).open(); if(!Helper.mobilecheck()) { setTimeout(function() { M.Modal.getInstance(document.getElementById("channel-share-modal")).close(); }, 10000); } - } + }*/ } else { Helper.removeElement(".video-container"); Helper.removeElement(".offline-panel");