diff --git a/static/sfu.css b/static/sfu.css index 640b4fd..4858d79 100644 --- a/static/sfu.css +++ b/static/sfu.css @@ -456,7 +456,7 @@ textarea.form-reply { position: absolute; top: 15%; left: 25%; - width: 21em; + width: 30em; padding: 2em; } diff --git a/static/sfu.html b/static/sfu.html index 70bab9d..e2bec4f 100644 --- a/static/sfu.html +++ b/static/sfu.html @@ -127,6 +127,11 @@ + + + + +
diff --git a/static/sfu.js b/static/sfu.js index 60f1911..cf2482a 100644 --- a/static/sfu.js +++ b/static/sfu.js @@ -272,6 +272,7 @@ function setConnected(connected) { userpass ? userpass.username : ''; getInputElement('password').value = userpass ? userpass.password : ''; + getInputElement('presentoff').checked = true; statspan.textContent = 'Disconnected'; statspan.classList.remove('connected'); statspan.classList.add('disconnected'); @@ -1937,6 +1938,19 @@ document.getElementById('userform').onsubmit = async function(e) { } finally { connecting = false; } + + let presentboth = getInputElement('presentboth').checked; + if(presentboth) { + let button = getButtonElement('presentbutton'); + button.disabled = true; + try { + let id = findUpMedia('local'); + if(!id) + await addLocalMedia(); + } finally { + button.disabled = false; + } + } }; document.getElementById('disconnectbutton').onclick = function(e) {