Spaces:
Sleeping
Sleeping
DmitrMakeev
commited on
Commit
•
19d121f
1
Parent(s):
89cecb3
Update zapro.html
Browse files- zapro.html +19 -29
zapro.html
CHANGED
@@ -13,35 +13,25 @@
|
|
13 |
|
14 |
</head>
|
15 |
<body>
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
url: "/zapro",
|
36 |
-
method: "GET",
|
37 |
-
success: function(response) {
|
38 |
-
$("#ph_value").text(response.ph_value);
|
39 |
-
$("#ec_value").text(response.ec_value);
|
40 |
-
}
|
41 |
-
});
|
42 |
-
}, 10000);
|
43 |
-
});
|
44 |
-
</script>
|
45 |
|
46 |
</body>
|
47 |
</html>
|
|
|
13 |
|
14 |
</head>
|
15 |
<body>
|
16 |
+
<h1>Zapro</h1>
|
17 |
+
<p>PH значение: <span id="ph_value"></span></p>
|
18 |
+
<p>EC значение: <span id="ec_value"></span></p>
|
19 |
+
|
20 |
+
<script>
|
21 |
+
$(document).ready(function() {
|
22 |
+
setInterval(function() {
|
23 |
+
$.ajax({
|
24 |
+
url: "/zapro",
|
25 |
+
method: "GET",
|
26 |
+
dataType: "json",
|
27 |
+
success: function(response) {
|
28 |
+
$("#ph_value").text(response.ph_value);
|
29 |
+
$("#ec_value").text(response.ec_value);
|
30 |
+
}
|
31 |
+
});
|
32 |
+
}, 10000);
|
33 |
+
});
|
34 |
+
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
|
36 |
</body>
|
37 |
</html>
|