Spaces:
Runtime error
Runtime error
DmitrMakeev
commited on
Commit
•
eda480b
1
Parent(s):
df74a7a
Update settings.html
Browse files- settings.html +10 -3
settings.html
CHANGED
@@ -132,7 +132,7 @@ input[type="number"] {
|
|
132 |
|
133 |
|
134 |
|
135 |
-
<br>
|
136 |
<h4>Тем. воздуха</h4>
|
137 |
<p>EEPROM : <span id="t_Voz_eep"></span></p>
|
138 |
|
@@ -140,7 +140,7 @@ input[type="number"] {
|
|
140 |
<label for="t_Voz_eep_set">Новое : </label>
|
141 |
<input type="number" id="t_Voz_eep_set" value="25" min="10" max="40" step="1">
|
142 |
</form>
|
143 |
-
|
144 |
|
145 |
|
146 |
</div>
|
@@ -302,6 +302,13 @@ input[type="number"] {
|
|
302 |
});
|
303 |
</script>
|
304 |
|
305 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
306 |
</body>
|
307 |
</html>
|
|
|
132 |
|
133 |
|
134 |
|
135 |
+
<br><br>
|
136 |
<h4>Тем. воздуха</h4>
|
137 |
<p>EEPROM : <span id="t_Voz_eep"></span></p>
|
138 |
|
|
|
140 |
<label for="t_Voz_eep_set">Новое : </label>
|
141 |
<input type="number" id="t_Voz_eep_set" value="25" min="10" max="40" step="1">
|
142 |
</form>
|
143 |
+
button id="t_Voz_set" type="button" class="btn btn-primary">Записать</button>
|
144 |
|
145 |
|
146 |
</div>
|
|
|
302 |
});
|
303 |
</script>
|
304 |
|
305 |
+
<script>
|
306 |
+
document.getElementById("t_Voz_set").addEventListener("click", function() {
|
307 |
+
var t_Voz_eep_set = document.getElementById("t_Voz_eep_set").value;
|
308 |
+
var xhr = new XMLHttpRequest();
|
309 |
+
xhr.open("GET", "/t_Voz_eep_set?value=" + t_Voz_eep_set, true);
|
310 |
+
xhr.send();
|
311 |
+
});
|
312 |
+
</script>
|
313 |
</body>
|
314 |
</html>
|