|
|
|
@ -1,13 +1,13 @@ |
|
|
|
|
<html><head><title>Connecting...</title> |
|
|
|
|
<link rel="stylesheet" type="text/css" href="style.css"> |
|
|
|
|
<script type="text/javascript" src="140medley.min.js"></script> |
|
|
|
|
<link rel="stylesheet" type="text/css" href="/wifi/style.css"> |
|
|
|
|
<script type="text/javascript" src="/wifi/140medley.min.js"></script> |
|
|
|
|
<script type="text/javascript"> |
|
|
|
|
|
|
|
|
|
var xhr=j(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function getStatus() { |
|
|
|
|
xhr.open("GET", "connstatus.cgi"); |
|
|
|
|
xhr.open("GET", "/wifi/connstatus"); |
|
|
|
|
xhr.onreadystatechange=function() { |
|
|
|
|
if (xhr.readyState==4 && xhr.status>=200 && xhr.status<300) { |
|
|
|
|
var data=JSON.parse(xhr.responseText); |
|
|
|
@ -20,7 +20,7 @@ function getStatus() { |
|
|
|
|
$("#status").innerHTML="Trying to connect to selected access point..."; |
|
|
|
|
window.setTimeout(getStatus, 1000); |
|
|
|
|
} else if (data.status=="fail") { |
|
|
|
|
$("#status").innerHTML="Connection failed. Check password and selected AP.<br /><a href=\"wifi.tpl\">Go Back</a>"; |
|
|
|
|
$("#status").innerHTML="Connection failed. Check password and selected AP.<br><a href=\"/wifi\">Go Back</a>"; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|