mirror of https://github.com/jeelabs/esp-link.git
parent
ab434dfc12
commit
4147496132
@ -1,5 +0,0 @@ |
||||
var p=function(a,b,c,d){c=c||document;d=c[b="on"+b];a=c[b]=function(e){d=d&&d(e=e||c.event);return(a=a&&b(e))?b:d};c=this}, |
||||
m=function(a,b,c){b=document;c=b.createElement("p");c.innerHTML=a;for(a=b.createDocumentFragment();b= |
||||
c.firstChild;)a.appendChild(b);return a}, |
||||
$=function(a,b){a=a.match(/^(\W)?(.*)/);return(b||document)["getElement"+(a[1]?a[1]=="#"?"ById":"sByClassName":"sByTagName")](a[2])}, |
||||
j=function(a){for(a=0;a<4;a++)try{return a?new ActiveXObject([,"Msxml2","Msxml3","Microsoft"][a]+".XMLHTTP"):new XMLHttpRequest}catch(b){}}; |
Before Width: | Height: | Size: 766 B After Width: | Height: | Size: 622 B |
@ -0,0 +1,10 @@ |
||||
<!doctype html> |
||||
<html><head> |
||||
<title>esp-link</title> |
||||
<link rel="stylesheet" href="/pure-min.css"> |
||||
<link rel="stylesheet" href="/style.css"> |
||||
<meta name="viewport" content="width=device-width, initial-scale=1"> |
||||
<script src="/ui.js"></script> |
||||
</head> |
||||
<body> |
||||
<div id="layout"> |
@ -1,25 +0,0 @@ |
||||
<!doctype html> |
||||
<html><head> |
||||
<title>esp-link</title> |
||||
<link rel="stylesheet" href="/pure-min.css"> |
||||
<link rel="stylesheet" href="/style.css"> |
||||
<meta name="viewport" content="width=device-width, initial-scale=1"> |
||||
<script src="/140medley.min.js"></script> |
||||
</head> |
||||
<body> |
||||
<div id="layout"> |
||||
<div id="spinner" class="spinner" hidden></div> |
||||
<div id="messages"> |
||||
<div id="warning" hidden>Warning message</div> |
||||
<div id="notification" hidden>Notification</div> |
||||
</div> |
||||
|
||||
<a href="#menu" id="menuLink" class="menu-link"><span></span></a> |
||||
|
||||
<div id="menu"> |
||||
<div class="pure-menu"> |
||||
<a class="pure-menu-heading" href="https://github.com/jeelabs/esp-link"> |
||||
<img src="/favicon.ico"> esp-link</a> |
||||
<ul id="menu-list" class="pure-menu-list"></ul> |
||||
</div> |
||||
</div> |
@ -0,0 +1,73 @@ |
||||
<div id="main"> |
||||
<div class="header"> |
||||
<h1>Wifi Configuration</h1> |
||||
</div> |
||||
|
||||
<div class="content"> |
||||
<div class="pure-g"> |
||||
<div class="pure-u-12-24"><div class="card"> |
||||
<h1>Wifi State</h1> |
||||
<div id="wifi-spinner" class="spinner spinner-small"></div> |
||||
<table id="wifi-table" class="pure-table pure-table-horizontal" hidden><tbody> |
||||
<tr><td>WiFi mode</td><td id="wifi-mode"></td></tr> |
||||
<tr><td>Configured network</td><td id="wifi-ssid"></td></tr> |
||||
<tr><td>Wifi status</td><td id="wifi-status"></td></tr> |
||||
<tr><td>Wifi address</td><td id="wifi-ip"></td></tr> |
||||
<tr><td>Wifi rssi</td><td id="wifi-rssi"></td></tr> |
||||
<tr><td>Wifi phy</td><td id="wifi-phy"></td></tr> |
||||
<tr><td>Wifi MAC</td><td id="wifi-mac"></td></tr> |
||||
<tr><td colspan="2" id="wifi-warn"></td></tr> |
||||
</tbody> </table> |
||||
</div></div> |
||||
<div class="pure-u-12-24"><div class="card"> |
||||
<h1>Wifi Association</h1> |
||||
<p id="reconnect" style="color: #600" hidden></p> |
||||
<form action="#" id="wifiform" class="pure-form pure-form-stacked"> |
||||
<legend>To connect to a WiFi network, please select one of the detected networks, |
||||
enter the password, and hit the connect button...</legend> |
||||
<label>Network SSID</label> |
||||
<div id="aps">Scanning... <div class="spinner spinner-small"></div></div> |
||||
<label>WiFi password, if applicable:</label> |
||||
<input id="wifi-passwd" type="password" name="passwd" placeholder="password"> |
||||
<button id="connect-button" type="submit" class="pure-button button-primary">Connect!</button> |
||||
</form> |
||||
</div></div> |
||||
</div> |
||||
<div class="pure-g"> |
||||
<div class="pure-u-12-24"><div class="card"> |
||||
<h1>Special Settings</h1> |
||||
<form action="#" id="specform" class="pure-form pure-form-stacked"> |
||||
<legend>Special settings, use with care! If the Static IP field is empty |
||||
then DHCP will be used, else DHCP will be off.</legend> |
||||
<label>Hostname used when requesting DHCP lease</label> |
||||
<input id="wifi-hostname" type="text" name="hostname"> |
||||
<label>Static IP address, blank to use DHCP</label> |
||||
<input id="wifi-staticip" type="text" name="staticip"> |
||||
<label>Netmask (for static IP)</label> |
||||
<input id="wifi-netmask" type="text" name="netmask"> |
||||
<label>Gateway (for static IP)</label> |
||||
<input id="wifi-gateway" type="text" name="gateway"> |
||||
<button id="special-button" type="submit" class="pure-button button-primary">Change!</button> |
||||
</form> |
||||
</div></div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
||||
<script type="text/javascript"> |
||||
console.log("before wifi.js"); |
||||
</script> |
||||
<script src="wifi.js"></script> |
||||
<script type="text/javascript"> |
||||
console.log("wifi html"); |
||||
onLoad(function() { |
||||
console.log("wifi html onload"); |
||||
getWifiInfo(); |
||||
$("#wifiform").onsubmit = changeWifiAp; |
||||
$("#specform").onsubmit = changeSpecial; |
||||
console.log("scanning in 500ms"); |
||||
scanTimeout = window.setTimeout(scanAPs, 500); |
||||
}); |
||||
</script> |
||||
</body></html> |
Loading…
Reference in new issue