comparison client.js @ 42:fe59565063af

mathieui: Add our current JID in the top bar.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 23 May 2020 18:41:45 +0200
parents bd343ef0942f
children 8b69b3a1ef8e
comparison
equal deleted inserted replaced
41:6a42b1783c9d 42:fe59565063af
116 } 116 }
117 } 117 }
118 118
119 function onConnected() 119 function onConnected()
120 { 120 {
121 const new_node = document.createElementNS('http://www.w3.org/1999/xhtml', 'span');
122 const parent_node = connect.parentNode;
123 const text = document.createTextNode('Logged in as ' + connection.authzid + ' ');
124 new_node.appendChild(text);
125 parent_node.insertBefore(new_node, connect);
126
121 jid_element.hidden = true; 127 jid_element.hidden = true;
122 pass_element.hidden = true; 128 pass_element.hidden = true;
123 connected_div.hidden = false; 129 connected_div.hidden = false;
124 hideSpinner(spinner_img); 130 hideSpinner(spinner_img);
125 initRoster(connection); 131 initRoster(connection);