Skip to content

Commit

Permalink
Update Web Interface
Browse files Browse the repository at this point in the history
Use a responsive web interface and send data via AJAX.
  • Loading branch information
sieren committed Feb 13, 2020
1 parent 5763c30 commit 3311b48
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 3311b48

Please sign in to comment.