Spaces:
Sleeping
Sleeping
DmitrMakeev
commited on
Commit
•
3f54678
1
Parent(s):
27b2dc8
Update settings.html
Browse files- settings.html +19 -2
settings.html
CHANGED
@@ -73,8 +73,11 @@ input[type="number"] {
|
|
73 |
<form>
|
74 |
<label for="ec_A_set">Новое : </label>
|
75 |
<input type="number" id="ec_A_set" value="1.5" min="0.1" max="20" step="0.01">
|
76 |
-
</form>
|
77 |
-
<
|
|
|
|
|
|
|
78 |
<h4>EC доз. B_ON sec.</h4>
|
79 |
<p>EEPROM : <span id="ec_B_eep"></span></p>
|
80 |
|
@@ -201,6 +204,8 @@ input[type="number"] {
|
|
201 |
xhr.send();
|
202 |
});
|
203 |
</script>
|
|
|
|
|
204 |
<script>
|
205 |
document.getElementById("ph_on_set_but").addEventListener("click", function() {
|
206 |
var pH_onValue = document.getElementById("ph_on_set").value;
|
@@ -209,6 +214,8 @@ input[type="number"] {
|
|
209 |
xhr.send();
|
210 |
});
|
211 |
</script>
|
|
|
|
|
212 |
<script>
|
213 |
document.getElementById("ec_set_but").addEventListener("click", function() {
|
214 |
var ecValue = document.getElementById("ec_set").value;
|
@@ -218,6 +225,16 @@ input[type="number"] {
|
|
218 |
});
|
219 |
</script>
|
220 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
221 |
|
222 |
</body>
|
223 |
</html>
|
|
|
73 |
<form>
|
74 |
<label for="ec_A_set">Новое : </label>
|
75 |
<input type="number" id="ec_A_set" value="1.5" min="0.1" max="20" step="0.01">
|
76 |
+
</form>
|
77 |
+
<button id="ec_A_set_but" type="button" class="btn btn-primary">Записать</button>
|
78 |
+
|
79 |
+
|
80 |
+
<br><br>
|
81 |
<h4>EC доз. B_ON sec.</h4>
|
82 |
<p>EEPROM : <span id="ec_B_eep"></span></p>
|
83 |
|
|
|
204 |
xhr.send();
|
205 |
});
|
206 |
</script>
|
207 |
+
|
208 |
+
|
209 |
<script>
|
210 |
document.getElementById("ph_on_set_but").addEventListener("click", function() {
|
211 |
var pH_onValue = document.getElementById("ph_on_set").value;
|
|
|
214 |
xhr.send();
|
215 |
});
|
216 |
</script>
|
217 |
+
|
218 |
+
|
219 |
<script>
|
220 |
document.getElementById("ec_set_but").addEventListener("click", function() {
|
221 |
var ecValue = document.getElementById("ec_set").value;
|
|
|
225 |
});
|
226 |
</script>
|
227 |
|
228 |
+
<script>
|
229 |
+
document.getElementById("ec_A_set_but").addEventListener("click", function() {
|
230 |
+
var ec_A_setValue = document.getElementById("ec_A_set").value;
|
231 |
+
var xhr = new XMLHttpRequest();
|
232 |
+
xhr.open("GET", "/ec_A_set?value=" + ec_A_setValue, true);
|
233 |
+
xhr.send();
|
234 |
+
});
|
235 |
+
</script>
|
236 |
+
|
237 |
+
|
238 |
|
239 |
</body>
|
240 |
</html>
|