diff options
Diffstat (limited to 'src/index.h')
-rwxr-xr-x | src/index.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/index.h b/src/index.h index 9a8edf3..92109b0 100755 --- a/src/index.h +++ b/src/index.h @@ -217,6 +217,8 @@ const char index_html[] PROGMEM = R"rawliteral( <input type="date" id="datep" name="datep"><br> <label for="brightness">Brightness:</label> <input type="range" min="0" max="15" value="3" class="slider" name="brightness" id="brightness"> + <label for="autoBrightness">Auto Brightness:</label> + <input type="checkbox" id="autoBrightness" name="autoBrightness" value="autoBrightness"><br><br> <input class="block" type="submit" value="Save"> <br> <div style="overflow-y: scroll; height:400px;"> @@ -380,6 +382,7 @@ const char index_html[] PROGMEM = R"rawliteral( */ document.getElementById("brightness").value = data.brightness; + document.getElementById("autoBrightness").checked = data.autoBrightness; document.getElementById("cssid").value = data["cssid"]; document.getElementById("cpassword").value = data["cpassword"]; document.getElementById("datep").valueAsDate = new Date(data["datep"]); |