DmitrMakeev commited on
Commit
19d121f
1 Parent(s): 89cecb3

Update zapro.html

Browse files
Files changed (1) hide show
  1. zapro.html +19 -29
zapro.html CHANGED
@@ -13,35 +13,25 @@
13
 
14
  </head>
15
  <body>
16
- <div class="card">
17
- <h1>Welcome to your static Space - Zapro!</h1>
18
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
19
- <p>
20
- Also don't forget to check the
21
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
22
- </p>
23
- </div>
24
-
25
-
26
-
27
- <p>PH значение: <span id="ph_value">{{ ph_value }}</span></p>
28
- <p>EC значение: <span id="ec_value">{{ ec_value }}</span></p>
29
-
30
-
31
- <script>
32
- $(document).ready(function() {
33
- setInterval(function() {
34
- $.ajax({
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>