Spaces:
Runtime error
Runtime error
DmitrMakeev
commited on
Commit
•
3addcc0
1
Parent(s):
bfd6aac
Update settings.html
Browse files- settings.html +9 -2
settings.html
CHANGED
@@ -49,7 +49,7 @@ input[type="number"] {
|
|
49 |
<label for="ph_on_set">Новое : </label>
|
50 |
<input type="number" id="ph_on_set" value="2.5" min="0.1" max="20" step="0.01">
|
51 |
</form>
|
52 |
-
|
53 |
|
54 |
|
55 |
<!-- Уровень - EC -->
|
@@ -201,7 +201,14 @@ input[type="number"] {
|
|
201 |
xhr.send();
|
202 |
});
|
203 |
</script>
|
204 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
205 |
<script>
|
206 |
document.getElementById("ec_set_but").addEventListener("click", function() {
|
207 |
var ecValue = document.getElementById("ec_set").value;
|
|
|
49 |
<label for="ph_on_set">Новое : </label>
|
50 |
<input type="number" id="ph_on_set" value="2.5" min="0.1" max="20" step="0.01">
|
51 |
</form>
|
52 |
+
<button id="ph_on_set_but" type="button" class="btn btn-primary">Записать</button>
|
53 |
|
54 |
|
55 |
<!-- Уровень - EC -->
|
|
|
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;
|
207 |
+
var xhr = new XMLHttpRequest();
|
208 |
+
xhr.open("GET", "/ph_on_set?value=" + pH_onValue, true);
|
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;
|