enable wi-fi saving

This commit is contained in:
Justin 2022-03-02 23:09:52 +08:00 committed by GitHub
parent 248149a976
commit a110be31d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1385,23 +1385,23 @@ let countryCodeInput = document.getElementById("country-code-input");
let joinNetworkBtn = document.querySelector("#join-network-btn"); let joinNetworkBtn = document.querySelector("#join-network-btn");
let connectedText = document.querySelector("#connected-text"); let connectedText = document.querySelector("#connected-text");
// joinNetworkBtn.addEventListener("click", () => { joinNetworkBtn.addEventListener("click", () => {
// localStorage.setItem("wifiSsid", wifiSsidInput.value); localStorage.setItem("wifiSsid", wifiSsidInput.value);
// localStorage.setItem("wifiPass", wifiPassInput.value); localStorage.setItem("wifiPass", wifiPassInput.value);
// localStorage.setItem("countryCode", countryCodeInput.value); localStorage.setItem("countryCode", countryCodeInput.value);
// connectedText.style.display = "block"; // connectedText.style.display = "block";
// setTimeout(() => { // setTimeout(() => {
// connectedText.style.display = "none"; // connectedText.style.display = "none";
// }, 2000); // }, 2000);
// data = {country:countryCodeInput.value, ssid:wifiSsidInput.value, pwd:wifiPassInput.value} data = {country:countryCodeInput.value, ssid:wifiSsidInput.value, pwd:wifiPassInput.value}
// fetch("/wifi", { fetch("/wifi", {
// method: "POST", method: "POST",
// body: JSON.stringify(data), body: JSON.stringify(data),
// }); });
// }); });
// change display format // change display format
let displayFormatDropDown = document.querySelector("#inputDisplayFormat"); let displayFormatDropDown = document.querySelector("#inputDisplayFormat");