function sendCommand(){var cmd=document.getElementById('console-cmd').value;var node=document.getElementById('console-node').value;var out=document.getElementById('console-output');out.textContent+='> '+cmd+' (node: '+node+')\n';Bridge.post('/api/router.php',{action:'admin_node_command',node_id:node,command:cmd}).then(function(r){out.textContent+=r.output||r.error||'No response.\n';out.scrollTop=out.scrollHeight})}