summaryrefslogtreecommitdiff
path: root/html
diff options
context:
space:
mode:
authorDaniel Jones <daniel@danieljon.es>2024-10-21 00:18:47 +1100
committerDaniel Jones <daniel@danieljon.es>2024-10-21 00:18:47 +1100
commit201ff379c1ea39985e68a1d91483cd15b3fdb843 (patch)
tree53ff2b349c79a42cb9758edd9ff858619a8872ec /html
parentc9b207f282a366356084732ef1178e186d1d9f8b (diff)
auto brightnessHEADmaster
add maximum light value to UI, store that in config. add %brightness% replacement to allow viewing of brightness in messages
Diffstat (limited to 'html')
-rwxr-xr-xhtml/index.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/html/index.html b/html/index.html
index ef9778b..b02cbae 100755
--- a/html/index.html
+++ b/html/index.html
@@ -217,7 +217,9 @@
<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 type="checkbox" id="autoBrightness" name="autoBrightness" value="autoBrightness">
+ <label for="autoBrightnessThreshold">Maximum (0-512):</label>
+ <input type="number" id="autoBrightnessThreshold" name="autoBrightnessThreshold" min="0" max="512" value="400"><br><br>
<input class="block" type="submit" value="Save">
<br>
<div style="overflow-y: scroll; height:400px;">
@@ -382,6 +384,7 @@
document.getElementById("brightness").value = data.brightness;
document.getElementById("autoBrightness").checked = data.autoBrightness;
+ document.getElementById("autoBrightnessThreshold").value = data.autoBrightnessThreshold;
document.getElementById("cssid").value = data["cssid"];
document.getElementById("cpassword").value = data["cpassword"];
document.getElementById("datep").valueAsDate = new Date(data["datep"]);