DmitrMakeev
commited on
Commit
•
2bc38dc
1
Parent(s):
711c245
Update settings.html
Browse files- settings.html +20 -2
settings.html
CHANGED
@@ -89,7 +89,7 @@ input[type="number"] {
|
|
89 |
|
90 |
|
91 |
|
92 |
-
|
93 |
<br><br>
|
94 |
<h4>EC доз. C_ON sec.</h4>
|
95 |
<p>EEPROM : <span id="ec_C_eep"></span></p>
|
@@ -98,7 +98,12 @@ input[type="number"] {
|
|
98 |
<label for="ec_C_set">Новое : </label>
|
99 |
<input type="number" id="ec_C_set" value="1.5" min="0.1" max="20" step="0.01">
|
100 |
</form>
|
101 |
-
|
|
|
|
|
|
|
|
|
|
|
102 |
<h4>Свет ON </h4>
|
103 |
<p>EEPROM: <span id="l_ON_h_eep"></span> : <span id="l_ON_m_eep"></span></p>
|
104 |
<form>
|
@@ -249,6 +254,19 @@ input[type="number"] {
|
|
249 |
});
|
250 |
</script>
|
251 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
252 |
|
253 |
|
254 |
</body>
|
|
|
89 |
|
90 |
|
91 |
|
92 |
+
<!-- EC доз. C_ON sec. -->
|
93 |
<br><br>
|
94 |
<h4>EC доз. C_ON sec.</h4>
|
95 |
<p>EEPROM : <span id="ec_C_eep"></span></p>
|
|
|
98 |
<label for="ec_C_set">Новое : </label>
|
99 |
<input type="number" id="ec_C_set" value="1.5" min="0.1" max="20" step="0.01">
|
100 |
</form>
|
101 |
+
<button id="ec_C_set_but" type="button" class="btn btn-primary">Записать</button>
|
102 |
+
|
103 |
+
|
104 |
+
|
105 |
+
|
106 |
+
<br> <br>
|
107 |
<h4>Свет ON </h4>
|
108 |
<p>EEPROM: <span id="l_ON_h_eep"></span> : <span id="l_ON_m_eep"></span></p>
|
109 |
<form>
|
|
|
254 |
});
|
255 |
</script>
|
256 |
|
257 |
+
|
258 |
+
<script>
|
259 |
+
document.getElementById("ec_C_set_but").addEventListener("click", function() {
|
260 |
+
var ec_C_setValue = document.getElementById("ec_C_set").value;
|
261 |
+
var xhr = new XMLHttpRequest();
|
262 |
+
xhr.open("GET", "/ec_C_set?value=" + ec_C_setValue, true);
|
263 |
+
xhr.send();
|
264 |
+
});
|
265 |
+
</script>
|
266 |
+
|
267 |
+
|
268 |
+
|
269 |
+
|
270 |
|
271 |
|
272 |
</body>
|