zebra-spaces: drop 'input' label; prefix dropdown options with 'input '

This commit is contained in:
Russell Ballestrini 2026-06-02 17:51:10 -04:00
parent 40cc4a5598
commit 68dd6e333c
No known key found for this signature in database

View file

@ -641,8 +641,7 @@ try {
<button id="btn-leave" disabled>leave</button>
</div>
<div class="row" id="row-mic-controls">
<label class="note" for="mic-select" style="flex:0 0 3rem">input</label>
<select id="mic-select" title="audio input device — applies once you have the mic"><option value="">default microphone</option></select>
<select id="mic-select" title="audio input device — applies once you have the mic"><option value="">input default</option></select>
</div>
<div class="row" id="row-music-mode">
<label class="note"><input type="checkbox" id="music-mode"> music mode — raw mic, no echo/noise cancellation (for playing audio through it)</label>
@ -2463,10 +2462,14 @@ async function refreshMicList(){
const mics = devs.filter(d=>d.kind==='audioinput');
const sel = $('mic-select'); if (!sel) return;
sel.innerHTML = '';
if (!mics.length){ sel.innerHTML = '<option value="">default microphone</option>'; return; }
if (!mics.length){ sel.innerHTML = '<option value="">input default</option>'; return; }
mics.forEach((m,i)=>{
const o = document.createElement('option');
o.value = m.deviceId; o.textContent = m.label || ('microphone '+(i+1));
/* prefix every option with 'input' so the dropdown reads as
* 'input WH-1000XM5' / 'input Built-in Mic'. We dropped the
* separate 'input' label that used to live alongside the row;
* the prefix keeps the meaning while freeing the column. */
o.value = m.deviceId; o.textContent = 'input ' + (m.label || ('microphone '+(i+1)));
sel.appendChild(o);
});
if (micDeviceId && mics.some(m=>m.deviceId===micDeviceId)) sel.value = micDeviceId;
@ -3678,8 +3681,8 @@ logLine('', 'ready — pick a handle, type a rendezvous code, enter the space');
<footer style="margin:2.2rem auto 0;font-size:0.65rem;color:#999;line-height:1.7;word-break:break-all;font-family:monospace">
<span id="pi-seal" style="color:#777;cursor:default;user-select:none" title="">page integrity</span> &nbsp;·&nbsp; built <span class="stamp-date">2026-06-02</span><br>
md5 <span class="stamp-md5">60f9f219a6148fe06d689b2b8fa0affe</span><br>
sha256 <span class="stamp-sha">a6e49160225e5cf39525e12417491de5531c4b5388075bef3faed15e3799ad59</span><br>
md5 <span class="stamp-md5">9f65113f0454c4ad54c5eb4cd4ac2f97</span><br>
sha256 <span class="stamp-sha">fc19fc5385205fe18c0fb7536539c158043201154957f5370a0d96de24484b7c</span><br>
<span style="color:#bbb">hashes are of this page with these two fields zeroed — to verify, blank them and re-hash</span><br>
<span style="color:#bbb">one self-contained file — <strong>save a copy</strong> and verify against these hashes; point at your own servers with ?signal= and ?turncred=, or <a href="host-your-own.html" style="color:#999">host your own community</a></span>
</footer>