comparison client.js @ 63:ee1df80a1715 default tip

Nicer-looking input form
author mathieui
date Sun, 24 May 2020 14:19:29 +0200
parents 6d861d881b96
children
comparison
equal deleted inserted replaced
62:46ca1aa08146 63:ee1df80a1715
126 } 126 }
127 } 127 }
128 128
129 function onConnected() 129 function onConnected()
130 { 130 {
131 const connection_form = document.getElementById('connection');
132 connection_form.classList.remove('initial-login');
131 const new_node = document.createElementNS('http://www.w3.org/1999/xhtml', 'span'); 133 const new_node = document.createElementNS('http://www.w3.org/1999/xhtml', 'span');
132 const parent_node = connect.parentNode; 134 const parent_node = connect.parentNode;
133 const text = document.createTextNode(`{% trans 'Logged in as ${connection.authzid} ' %}`); 135 const text = document.createTextNode(`{% trans 'Logged in as ${connection.authzid} ' %}`);
134 new_node.appendChild(text); 136 new_node.appendChild(text);
135 parent_node.insertBefore(new_node, connect); 137 parent_node.insertBefore(new_node, connect);