improvements + page testing php scripts (use with php -S localhost:1337 in the folder)

This commit is contained in:
2017-01-29 01:58:36 +01:00
parent b1baffa3d5
commit e62c4ece90
6 changed files with 38 additions and 7 deletions
+2 -2
View File
@@ -75,7 +75,7 @@
/** Ask the CGI what APs are visible (async) */
function scanAPs() {
$.get('/wifi/scan', onScan);
$.get('http://'+_root+'/wifi/scan', onScan);
}
function rescan(time) {
@@ -129,7 +129,7 @@
var abortTmeo;
function getStatus() {
xhr.open("GET", "/wifi/connstatus");
xhr.open("GET", 'http://'+_root+"/wifi/connstatus");
xhr.onreadystatechange = function () {
if (xhr.readyState == 4 && xhr.status >= 200 && xhr.status < 300) {
clearTimeout(abortTmeo);