Skip to content

Commit

Permalink
Merge pull request #52 from sieren/update-web-interface
Browse files Browse the repository at this point in the history
Update Web Interface
  • Loading branch information
sieren authored Feb 13, 2020
2 parents 7efed05 + 3311b48 commit 41815ac
Show file tree
Hide file tree
Showing 11 changed files with 1,799 additions and 26 deletions.
12 changes: 12 additions & 0 deletions data/captive/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
function reboot() {
var http = new XMLHttpRequest();
http.open("POST", "updateConfig.htm", true);
http.withCredentials = true;
http.setRequestHeader("Content-type","application/x-www-form-urlencoded");
var params = "ssid=" + document.getElementsByName("ssid")[0].value +
"&ssidPassword=" + document.getElementsByName("ssidPassword")[0].value +
"&loginName=" + document.getElementsByName("loginName")[0].value +
"&loginPassword=" + document.getElementsByName("loginPassword")[0].value
http.send(params);
alert("Homepoint rebooted. Please wait a few seconds and check the new IP on the status bar of the display.");
}
Loading

0 comments on commit 41815ac

Please sign in to comment.