mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Added modal for mobile automatically open in iframe
This commit is contained in:
@@ -3352,6 +3352,10 @@ nav ul li:hover, nav ul li.active {
|
|||||||
margin-top: auto !important;
|
margin-top: auto !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#channel-share-modal {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
#autocomplete-input {
|
#autocomplete-input {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-bottom: 1px solid #9e9e9e !important;
|
border-bottom: 1px solid #9e9e9e !important;
|
||||||
|
|||||||
@@ -207,9 +207,14 @@ var Channel = {
|
|||||||
|
|
||||||
|
|
||||||
if(!client) {
|
if(!client) {
|
||||||
var shareCodeUrl = window.location.protocol + "//client."+window.location.hostname+"/r/"+btoa(encodeURIComponent(chan.toLowerCase()));
|
if(!Helper.mobilecheck()) {
|
||||||
document.getElementById("share-join-qr").setAttribute("src", "https://chart.googleapis.com/chart?chs=221x221&cht=qr&choe=UTF-8&chld=L|1&chl="+shareCodeUrl);
|
var shareCodeUrl = window.location.protocol + "//client."+window.location.hostname+"/r/"+btoa(encodeURIComponent(chan.toLowerCase()));
|
||||||
Helper.setHtml("#channel-name-join", "client." + window.location.hostname + "/" + 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) {
|
||||||
|
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'>";
|
||||||
|
M.Modal.getInstance(document.getElementById("channel-share-modal")).open();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
Helper.removeElement(".video-container");
|
Helper.removeElement(".video-container");
|
||||||
Helper.removeElement(".offline-panel");
|
Helper.removeElement(".offline-panel");
|
||||||
|
|||||||
@@ -1236,7 +1236,7 @@ function before_toast(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
function addJoinBox() {
|
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>');
|
document.querySelector("#video-container").insertAdjacentHTML("beforeend", '<a href="https://zoff.me" target="_blank"><div class="addedJoinBox">Listen directly on https://zoff.me<br>© KasperRT & Nixo</div></a>');
|
||||||
}
|
}
|
||||||
|
|
||||||
function scrollChat() {
|
function scrollChat() {
|
||||||
|
|||||||
Reference in New Issue
Block a user