Skip to content

Commit

Permalink
Update _wifi_site.html
Browse files Browse the repository at this point in the history
  • Loading branch information
joshua-8 committed Sep 27, 2024
1 parent 86501be commit ea2f2c7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gbg_program/_wifi_site.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,10 @@
let value = parseInt(fetchedResponse["m"]);

for (let i = 0, length = radios.length; i < length; i++) {
console.log(parseInt(radios[i].value), value);
radios[i].checked = radios[i].value === value;
radios[i].checked = parseInt(radios[i].value) === value;
}

if (value === 1) {/*modes that give a choice about deactivate when timeout*/
if (value === 0) {/*modes that give a choice about deactivate when timeout*/
document.getElementById("timeout").disabled = false;
} else {
document.getElementById("timeout").disabled = true;
Expand Down

0 comments on commit ea2f2c7

Please sign in to comment.