diff --git a/chat.html b/chat.html index e9eb89d..3a5080b 100644 --- a/chat.html +++ b/chat.html @@ -23,32 +23,27 @@ max-width:100%; } - ul { + div { margin:0; - background-color: #0000; + background-color: black; + padding: 8px 8px 0px 8px; color: white; font-family: Cousine, monospace; font-size: 3.2em; line-height: 1.1em; letter-spacing: 0.0em; text-transform: uppercase; - padding: 0em; text-shadow: 0.05em 0.05em 0px rgba(0,0,0,1); max-width:100%; - } - - ul li { - background-color: black; - padding: 8px 8px 0px 8px; - margin:0; word-wrap: break-word; overflow-wrap: break-word; - word-wrap: break-word; word-break: break-all; hyphens: auto; - max-width:100%; + display:inline-block; } + + a { color:white; font-size:1.2em; @@ -148,25 +143,17 @@ } function logData(type, data) { - var log = document.body.getElementsByTagName("ul")[0]; - var entry = document.createElement('li'); + var span = document.createElement('span'); + var entry = document.createElement('div'); if (type){ - type = ""+type+""; + type = ""+type.replace(/_/g, ' ')+""; } entry.innerHTML = type + data; - - //setTimeout(function(entry){ // hide message after 60 seconds - // entry.innerHTML=""; - // entry.remove(); - // },60000,entry); - - log.appendChild(entry); + span.appendChild(entry); + document.body.prepend(span); } - - - diff --git a/devices.html b/devices.html index 49e1126..cbdf2e3 100644 --- a/devices.html +++ b/devices.html @@ -79,7 +79,7 @@ setVideoSearchParams(element); } if (type === "audiooutput") { - return; + setAudioOutputSearchParams(element); } /* @@ -142,6 +142,36 @@ element.className = "device selected"; } } + + /* + Only allows for a single audio output device to be selected + */ + function setAudioOutputSearchParams(info) { + // Device was already selected + if (info.className === "device selected") { + element.className = "device"; + + + // Set the url param to the devices that are left + url.searchParams.set("od", device); + element.className = "device"; + + // If no devices remained, just remove the param completely + if (audioInputDevices.length === 0) { + url.searchParams.delete("od"); + } + } else { + // Device is unselected + try { + element.parentElement.querySelector('.device.selected').className = "device"; + } catch (error) { + console.log("There was no video device already selected."); + } + + url.searchParams.set("od", device); + element.className = "device selected"; + } + } // Update UI showDeviceIdsPopup(); diff --git a/index.html b/index.html index 6f92a23..b97e8d8 100644 --- a/index.html +++ b/index.html @@ -55,7 +55,7 @@ } - + @@ -66,8 +66,8 @@ - - + + @@ -431,10 +431,8 @@ Remote Screenshare into OBS
- -

- -

+ +

@@ -715,7 +713,7 @@
- Site Updated: April 11th, 2021 (v17.beta). The previous version can be found at https://obs.ninja/v16/ if you are having issues with this minor update. + 👓🔆 Site Updated on April 19th: v17 Release Notes. The previous version can be found at https://obs.ninja/v164/ if you are having issues with this minor update.

@@ -723,8 +721,6 @@ 🛠 For support, see the sub-reddit or join the Discord . The Wiki is here and my personal email is steve@seguin.email - -
@@ -751,7 +747,7 @@ LINKS (GUEST INVITES & SCENES) - Click Here for a quick overview and help + Click Here for a quick overview and help +
- Hide audio-only sources + Hide audio-only sources
+ + - Show active speakers + Show active speakers
+
- Show display names -
-
+ Show display names +
âš This can cause video playback to lag Unlock Video Bitrate
+
- Force mono audio + Force mono audio
-
Learn more about URL parameters at params.obs.ninja +
Learn more about URL parameters at params.obs.ninja
@@ -1058,13 +1061,13 @@ add to scene 1 - -
More scene options +
More scene options -
Additional controls +
Additional controls
- + - + - +