-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a responsive web interface and send data via AJAX.
- Loading branch information
Showing
11 changed files
with
1,799 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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."); | ||
} |
Oops, something went wrong.