minor tweaks

This commit is contained in:
steveseguin 2023-04-26 18:20:53 -04:00
parent 50cc8e2077
commit c6dbbb856f
4 changed files with 27 additions and 5 deletions

View File

@ -1381,7 +1381,7 @@
<span class="tooltiptext" style='overflow: auto;left: 35%;width: 3em;top: -15px;margin: 0;position: absolute;font-family:"Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", Times, Symbola, Aegyptus,Code2000, Code2001, Code2002, Musica, serif, LastResort;' >100</span>
</span>
<button data-action-type="mute-guest" class="center" value="0" title="Mute this guest everywhere" onclick="remoteMute(this, event);">
<i class="las la-microphone-slash"></i>
<i class="las la-microphone-slash"></i><span data-translate="mute">Mute</span>
</button>
</div>
<!-- General Controls -->
@ -2486,7 +2486,7 @@
// session.hidehome = true; // If used, 'hide home' will make the landing page inaccessible, along with hiding a few go-home elements.
// session.record = false; // uncomment to block users from being able to record via vdo.ninja's built in recording function
</script>
<script type="text/javascript" crossorigin="anonymous" id="lib-js" src="./lib.js?ver=766"></script>
<script type="text/javascript" crossorigin="anonymous" id="lib-js" src="./lib.js?ver=767"></script>
<!--
// If you wish to change branding, blank offers a good clean start.
<script type="text/javascript" id="main-js" src="./main.js" data-translation="blank"></script>

7
lib.js
View File

@ -12457,12 +12457,13 @@ function remoteMute(ele, event=false, skipSend=false) {
ele.value = 0;
ele.classList.remove("pressed"); ele.ariaPressed = "false";
ele.innerHTML = '<i class="las la-microphone-slash" style="color:#900"></i>';
ele.innerHTML += miscTranslations["mute"] || "Mute";
} else {
ele.value = 1;
ele.classList.add("pressed"); ele.ariaPressed = "true";
ele.classList.add("pressed"); ele.ariaPressed = "true";
ele.innerHTML = '<i class="las la-microphone-slash" style="color:#900"></i>';
ele.innerHTML += miscTranslations["unmute"] || "Unmute";
}
miniTranslate(ele);
}
try {
@ -31691,7 +31692,7 @@ function initAudioButtons(audioGain, UUID){
if (elements[0]){
elements[0].value = 1;
elements[0].classList.add("pressed"); elements[0].ariaPressed = "true";
elements[0].children[1].innerHTML = miscTranslations["unmute-guest"];
elements[0].children[1].innerHTML = miscTranslations["unmute"];
session.rpcs[UUID].directorMutedState = 1;
}
pokeIframeAPI("director-mute-state", true, UUID);

View File

@ -259,6 +259,22 @@ a {
color: var(--a-dark-active);
}
.directorContainer a:link {
color: var(--a-lighter-link);
}
.directorContainer a:visited {
color: var(--a-lighter-visited);
}
.directorContainer a:hover {
color: var(--a-lighter-hover);
}
.directorContainer a:focus {
color: var(--a-lighter-focus);
}
.directorContainer a:active {
color: var(--a-lighter-active);
}
.infoblob a:link {
color: var(--a-lighter-link);
}
@ -3364,6 +3380,10 @@ div#roomnotes2 {
font-size: 15px;
}
.controlsGrid button[data-action-type="mute-guest"] {
min-width: 31%;
}
/* Button icons: Red */
.controlsGrid button[data-action-type="mute-scene"] i,
.controlsGrid button[data-action-type="mute-guest"] i,

View File

@ -295,6 +295,7 @@
"voice-chat": " Solo Talk",
"add-to-scene": "add to scene 1",
"mute-guest": "Mute",
"mute": "Mute",
"More-scene-options": "Scene options",
"add-to-scene2": "add to scene 2",
"mute-scene": "mute in scene",