X-Git-Url: https://git.rvb.name/esp-clock.git/blobdiff_plain/e6a4483ee334f8a5879b55ecc8da6255ad565d41..6d3be4253d91ef9289fa4f3b7e280b2258fabaf1:/data/web/script.js
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 = ''
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 += ''+json[idx].ssid+' | '+json[idx].bssid+' | '+json[idx].rssi+' | '+json[idx].channel+' | '+encryption+' |
'
}
@@ -346,7 +346,7 @@ function elementHTML(element) {
value = now.toISOString().slice(0, -1);
return ''
+'
'
- + '
->
'
+ + '→
'
case 'text':
return '' + encode(value) + '
'
case 'number':