function routeNodesPrivEvent(nodeid,attr,attr2){ return function (e){ var input = e.which || e.keyCode; if (input === 13) { // 13 is enter if(internal.aliases[nodeid] == undefined){ internal.aliases[nodeid] = {} } if(attr2 == undefined){ internal.aliases[nodeid][attr] = e.srcElement.value }else{ if(internal.aliases[nodeid][attr] == undefined){ internal.aliases[nodeid][attr] = {} } internal.aliases[nodeid][attr][attr2] = e.srcElement.value } send('POST',internal.config.api+'/aliases/alias/'+nodeid,internal.aliases[nodeid]) } menuAliases.setAttribute("data-badge",Object.keys(internal.aliases).length) } } function routeNodes(){ fill = '
' + ' | Hostname | ' + 'Ports | ' + 'Freq | ' + 'Clients | ' + 'Ch | ' + 'Tx | ' + 'Ort | ' + 'SSH | ' + '
---|---|---|---|---|---|---|---|---|
' + 'camera | ' + ''
+ ' '
+ ''
+ ''
+ ' '
+ ' | '
+ '100% | ' + '2Ghz | ' + ''+internal.nodes[key].statistics.clients.wifi24+' | ' + '' + '' + ' | ' + '' + '' + ' | ' + 'place | ' + 'SSH | ' + '
5Ghz | ' + ''+ internal.nodes[key].statistics.clients.wifi5+' | ' + '' + '' + ' | ' + '' + '' + ' | ' + '' + '