X-Git-Url: https://git.rvb.name/esp-clock.git/blobdiff_plain/bb98586f5554bf3f73c10a48cc5aaf4b1c33badb..6d3be4253d91ef9289fa4f3b7e280b2258fabaf1:/data/web/script.js 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+'