X-Git-Url: https://git.rvb.name/esp-clock.git/blobdiff_plain/3a386826fc7eec89b50beda371dcef0ad3adc2a5..6d3be4253d91ef9289fa4f3b7e280b2258fabaf1:/data/web/script.js?ds=sidebyside diff --git a/data/web/script.js b/data/web/script.js index ee43439..247126c 100644 --- a/data/web/script.js +++ b/data/web/script.js @@ -214,12 +214,12 @@ function getWiFi(id) { return; } var json = JSON.parse(this.responseText) - var table = '' + var table = '
SSIDBSSIDRSSIКаналЗащита
' if (!json.length) { setTimeout(getWiFi(id),5000); } for (idx in json) { - var encryption = json[idx].secure == 2? "TKIP" : json[idx].secure == 5? "WEP" : json[idx].secure == 4? "CCMP" : json[idx].secure == 7? "нет" : json[idx].secure == 8? "Автоматически" : "Не определено"; + var encryption = json[idx].secure == 2? "TKIP" : json[idx].secure == 5? "WEP" : json[idx].secure == 4? "CCMP" : json[idx].secure == 7? "нет" : json[idx].secure == 8? "Авто" : "Неизв."; table += '' } @@ -346,7 +346,7 @@ function elementHTML(element) { value = now.toISOString().slice(0, -1); return '
' +'' - + '
->
' + + '
' case 'text': return '

' + encode(value) + '

' case 'number': @@ -364,7 +364,7 @@ function elementHTML(element) { + '
' + '' + '' - + '' + + '' + '
' case 'table': default:
SSIDBSSIDRSSIКаналЗащита
'+json[idx].ssid+''+json[idx].bssid+''+json[idx].rssi+''+json[idx].channel+''+encryption+'