DmitrMakeev
commited on
Commit
•
3867c22
1
Parent(s):
1321c2f
Update settings.html
Browse files- settings.html +10 -0
settings.html
CHANGED
@@ -149,5 +149,15 @@ input[type="number"] {
|
|
149 |
fetchValues();
|
150 |
setInterval(fetchValues, 10000);
|
151 |
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
</body>
|
153 |
</html>
|
|
|
149 |
fetchValues();
|
150 |
setInterval(fetchValues, 10000);
|
151 |
</script>
|
152 |
+
|
153 |
+
<script>
|
154 |
+
document.getElementById("pH_set_but").addEventListener("click", function() {
|
155 |
+
var pHValue = document.getElementById("pH_set").value;
|
156 |
+
var xhr = new XMLHttpRequest();
|
157 |
+
xhr.open("GET", "/pH_set?value=" + pHValue, true);
|
158 |
+
xhr.send();
|
159 |
+
});
|
160 |
+
</script>
|
161 |
+
|
162 |
</body>
|
163 |
</html>
|