From ea2f2c7e5572e65d5652c525498c7d420870bd51 Mon Sep 17 00:00:00 2001 From: joshua18 Date: Fri, 27 Sep 2024 14:42:51 -0700 Subject: [PATCH] Update _wifi_site.html --- gbg_program/_wifi_site.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gbg_program/_wifi_site.html b/gbg_program/_wifi_site.html index 98c8545..6fa9356 100644 --- a/gbg_program/_wifi_site.html +++ b/gbg_program/_wifi_site.html @@ -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;