mirror of
https://github.com/eliasstepanik/vdo.ninja.git
synced 2026-01-27 21:38:31 +00:00
Merge pull request #1040 from lindenkron/enable-mic
Defaults to standard colors instead of green
This commit is contained in:
commit
1c52d91c05
8
lib.js
8
lib.js
@ -10863,10 +10863,10 @@ function hangup2() {
|
|||||||
getById("screensharebutton").classList.remove("green");
|
getById("screensharebutton").classList.remove("green");
|
||||||
|
|
||||||
if (session.showDirector == false) {
|
if (session.showDirector == false) {
|
||||||
getById("miniPerformer").innerHTML = '<button id="press2talk" onmousedown="event.preventDefault(); event.stopPropagation();" class="float green" onclick="press2talk(true);" title="You can also enable the director`s Video Output afterwards by clicking the Setting`s button"><i class="las la-headset"></i><span data-translate="push-to-talk-enable"> enable director`s microphone or video<br />(only guests can see this feed)</span></button>';
|
getById("miniPerformer").innerHTML = '<button id="press2talk" onmousedown="event.preventDefault(); event.stopPropagation();" class="float" onclick="press2talk(true);" title="You can also enable the director`s Video Output afterwards by clicking the Setting`s button"><i class="las la-headset"></i><span data-translate="push-to-talk-enable"> enable director`s microphone or video<br />(only guests can see this feed)</span></button>';
|
||||||
miniTranslate(getById("miniPerformer"));
|
miniTranslate(getById("miniPerformer"));
|
||||||
} else {
|
} else {
|
||||||
getById("miniPerformer").innerHTML = '<button id="press2talk" onmousedown="event.preventDefault(); event.stopPropagation();" class="float green" onclick="press2talk(true);" title="You can also enable the director`s Video Output afterwards by clicking the Setting`s button"><i class="las la-headset"></i><span data-translate="push-to-talk-enable-2"> enable director`s microphone or video</span></button>';
|
getById("miniPerformer").innerHTML = '<button id="press2talk" onmousedown="event.preventDefault(); event.stopPropagation();" class="float" onclick="press2talk(true);" title="You can also enable the director`s Video Output afterwards by clicking the Setting`s button"><i class="las la-headset"></i><span data-translate="push-to-talk-enable-2"> enable director`s microphone or video</span></button>';
|
||||||
}
|
}
|
||||||
getById("miniPerformer").className = "";
|
getById("miniPerformer").className = "";
|
||||||
}
|
}
|
||||||
@ -15366,14 +15366,14 @@ async function createRoomCallback(passAdd, passAdd2) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (session.showDirector == false) {
|
if (session.showDirector == false) {
|
||||||
getById("miniPerformer").innerHTML = '<button id="press2talk" onmousedown="event.preventDefault(); event.stopPropagation();" class="float green" onclick="press2talk(true);" title="You can also enable the director`s Video Output afterwards by clicking the Setting`s button"><i class="las la-headset"></i><span data-translate="push-to-talk-enable"> enable director`s microphone or video<br />(only guests can see this feed)</span></button>';
|
getById("miniPerformer").innerHTML = '<button id="press2talk" onmousedown="event.preventDefault(); event.stopPropagation();" class="float" onclick="press2talk(true);" title="You can also enable the director`s Video Output afterwards by clicking the Setting`s button"><i class="las la-headset"></i><span data-translate="push-to-talk-enable"> enable director`s microphone or video<br />(only guests can see this feed)</span></button>';
|
||||||
miniTranslate(getById("miniPerformer"));
|
miniTranslate(getById("miniPerformer"));
|
||||||
getById("grabDirectorSoloLink").dataset.raw = "https://" + location.host + location.pathname + "?solo&sd&r=" + session.roomid + "&v="+session.streamID + passAdd2 + wss + token;
|
getById("grabDirectorSoloLink").dataset.raw = "https://" + location.host + location.pathname + "?solo&sd&r=" + session.roomid + "&v="+session.streamID + passAdd2 + wss + token;
|
||||||
getById("grabDirectorSoloLink").href = "https://" + location.host + location.pathname + "?solo&sd&r=" + session.roomid + "&v="+session.streamID + passAdd2 + wss + token;
|
getById("grabDirectorSoloLink").href = "https://" + location.host + location.pathname + "?solo&sd&r=" + session.roomid + "&v="+session.streamID + passAdd2 + wss + token;
|
||||||
getById("grabDirectorSoloLink").innerText = "https://" + location.host + location.pathname + "?solo&sd&r=" + session.roomid + "&v="+session.streamID + passAdd2 + wss + token;
|
getById("grabDirectorSoloLink").innerText = "https://" + location.host + location.pathname + "?solo&sd&r=" + session.roomid + "&v="+session.streamID + passAdd2 + wss + token;
|
||||||
getById("grabDirectorSoloLinkParent").classList.remove("hidden");
|
getById("grabDirectorSoloLinkParent").classList.remove("hidden");
|
||||||
} else {
|
} else {
|
||||||
getById("miniPerformer").innerHTML = '<button id="press2talk" onmousedown="event.preventDefault(); event.stopPropagation();" class="float green" onclick="press2talk(true);" title="You can also enable the director`s Video Output afterwards by clicking the Setting`s button"><i class="las la-headset"></i><span data-translate="push-to-talk-enable-2"> enable director`s microphone or video</span></button>';
|
getById("miniPerformer").innerHTML = '<button id="press2talk" onmousedown="event.preventDefault(); event.stopPropagation();" class="float" onclick="press2talk(true);" title="You can also enable the director`s Video Output afterwards by clicking the Setting`s button"><i class="las la-headset"></i><span data-translate="push-to-talk-enable-2"> enable director`s microphone or video</span></button>';
|
||||||
}
|
}
|
||||||
getById("miniPerformer").className = "";
|
getById("miniPerformer").className = "";
|
||||||
|
|
||||||
|
|||||||
4
main.css
4
main.css
@ -1238,7 +1238,7 @@ button.glyphicon-button.active.focus {
|
|||||||
display:none;
|
display:none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#subControlButtons div {
|
#subControlButtons div, #subControlButtons span button {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
@ -4922,7 +4922,7 @@ body.darktheme h2 {
|
|||||||
color: #DDD;
|
color: #DDD;
|
||||||
}
|
}
|
||||||
body.darktheme button {
|
body.darktheme button {
|
||||||
filter: brightness(0.70);
|
/* filter: brightness(0.70); */
|
||||||
}
|
}
|
||||||
body.darktheme .column .las {
|
body.darktheme .column .las {
|
||||||
color: black;
|
color: black;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user