X-Git-Url: https://git.rvb.name/esp-clock.git/blobdiff_plain/e6a4483ee334f8a5879b55ecc8da6255ad565d41..refs/heads/master:/data/web/script.js?ds=inline diff --git a/data/web/script.js b/data/web/script.js index e9a100e..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':
SSIDBSSIDRSSIКаналЗащита
'+json[idx].ssid+''+json[idx].bssid+''+json[idx].rssi+''+json[idx].channel+''+encryption+'