Spaces:
Sleeping
Sleeping
DmitrMakeev
commited on
Commit
•
977935b
1
Parent(s):
a4ec91e
Update zapro.html
Browse files- zapro.html +5 -2
zapro.html
CHANGED
@@ -16,13 +16,16 @@
|
|
16 |
<h1>Zapro</h1>
|
17 |
<p>PH значение: <span id="ph">{{ ph }}</span></p>
|
18 |
<p>EC значение: <span id="ec">{{ ec }}</span></p>
|
19 |
-
|
|
|
20 |
|
21 |
<script>
|
22 |
$(document).ready(function() {
|
23 |
function updateValues(phValue, ecValue) {
|
24 |
$("#ph").text(phValue);
|
25 |
$("#ec").text(ecValue);
|
|
|
|
|
26 |
}
|
27 |
|
28 |
function fetchValues() {
|
@@ -31,7 +34,7 @@
|
|
31 |
method: "GET",
|
32 |
dataType: "json",
|
33 |
success: function(response) {
|
34 |
-
updateValues(response.ph, response.ec);
|
35 |
}
|
36 |
});
|
37 |
}
|
|
|
16 |
<h1>Zapro</h1>
|
17 |
<p>PH значение: <span id="ph">{{ ph }}</span></p>
|
18 |
<p>EC значение: <span id="ec">{{ ec }}</span></p>
|
19 |
+
<p>PH значение: <span id="dey">{{ dey }}</span></p>
|
20 |
+
<p>EC значение: <span id="wek">{{ wek }}</span></p>
|
21 |
|
22 |
<script>
|
23 |
$(document).ready(function() {
|
24 |
function updateValues(phValue, ecValue) {
|
25 |
$("#ph").text(phValue);
|
26 |
$("#ec").text(ecValue);
|
27 |
+
$("#dey").text(phValue);
|
28 |
+
$("#wek").text(ecValue);
|
29 |
}
|
30 |
|
31 |
function fetchValues() {
|
|
|
34 |
method: "GET",
|
35 |
dataType: "json",
|
36 |
success: function(response) {
|
37 |
+
updateValues(response.dey, response.wek, response.ph, response.ec);
|
38 |
}
|
39 |
});
|
40 |
}
|