have call box

This commit is contained in:
Peter Harpending
2026-02-12 20:54:58 -08:00
parent 08c0119ae0
commit 484eea92e4
5 changed files with 42 additions and 9 deletions
+13 -3
View File
@@ -61,10 +61,20 @@ function render_state() {
let roster_ul = document.getElementById('roster-ul');
let newChildren = [];
for (let nick of st.roster) {
let li = document.createElement('li');
li.innerText = nick;
newChildren.push(li);
if (!(nick === st.whoami)) {
let li = nickkk(nick);
newChildren.push(li);
}
}
roster_ul.replaceChildren(...newChildren);
}
function nickkk(nick) {
let li = document.createElement('li');
li.innerText += nick;
li.innerText += ' ';
let call_a = document.createElement('button');
call_a.innerText = 'call';
li.appendChild(call_a);
return li;
}
//# sourceMappingURL=webrtc.js.map