DmitrMakeev commited on
Commit
7b2f791
1 Parent(s): b41ae96

Update settings.html

Browse files
Files changed (1) hide show
  1. settings.html +48 -34
settings.html CHANGED
@@ -125,6 +125,54 @@ input[type="number"] {
125
 
126
  </div>
127
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
128
 
129
  <script>
130
 
@@ -164,40 +212,6 @@ input[type="number"] {
164
 
165
 
166
 
167
- <script>
168
-
169
-
170
- function updateValues_eep_set(data) {
171
- document.getElementById("pH_set").textContent = data.ph_eep;
172
- document.getElementById("ph_on_set").textContent = data.ph_on_eep;
173
- document.getElementById("ec_set").textContent = data.ec_eep;
174
- document.getElementById("ec_A_set").textContent = data.ec_A_eep;
175
- document.getElementById("ec_B_set").textContent = data.ec_B_eep;
176
- document.getElementById("ec_C_set").textContent = data.ec_C_eep;
177
- document.getElementById("l_ON_h_set").textContent = data.l_ON_h_eep;
178
- document.getElementById("l_ON_m_set").textContent = data.l_ON_m_eep;
179
- document.getElementById("l_OFF_h_set").textContent = data.l_OFF_h_eep;
180
- document.getElementById("l_OFF_m_set").textContent = data.l_OFF_m_eep;
181
- document.getElementById("t_Voz_set").textContent = data.t_Voz_eep;
182
-
183
- }
184
-
185
- function fetchValues_eep_set() {
186
- var xhr = new XMLHttpRequest();
187
- xhr.open("GET", "/settings_api_eep_set", true);
188
- xhr.setRequestHeader("Content-Type", "application/json");
189
- xhr.onreadystatechange = function () {
190
- if (xhr.readyState === 4 && xhr.status === 200) {
191
- var response = JSON.parse(xhr.responseText);
192
- updateValues_eep_set(response);
193
- }
194
- };
195
- xhr.send();
196
- }
197
-
198
- fetchValues_eep_set();
199
-
200
- </script>
201
 
202
 
203
 
 
125
 
126
  </div>
127
 
128
+
129
+
130
+ <script>
131
+
132
+
133
+ function updateValues_eep_set(data) {
134
+ document.getElementById("pH_set").textContent = data.ph_eep;
135
+ document.getElementById("ph_on_set").textContent = data.ph_on_eep;
136
+ document.getElementById("ec_set").textContent = data.ec_eep;
137
+ document.getElementById("ec_A_set").textContent = data.ec_A_eep;
138
+ document.getElementById("ec_B_set").textContent = data.ec_B_eep;
139
+ document.getElementById("ec_C_set").textContent = data.ec_C_eep;
140
+ document.getElementById("l_ON_h_set").textContent = data.l_ON_h_eep;
141
+ document.getElementById("l_ON_m_set").textContent = data.l_ON_m_eep;
142
+ document.getElementById("l_OFF_h_set").textContent = data.l_OFF_h_eep;
143
+ document.getElementById("l_OFF_m_set").textContent = data.l_OFF_m_eep;
144
+ document.getElementById("t_Voz_set").textContent = data.t_Voz_eep;
145
+
146
+ }
147
+
148
+ function fetchValues_eep_set() {
149
+ var xhr = new XMLHttpRequest();
150
+ xhr.open("GET", "/settings_api_eep_set", true);
151
+ xhr.setRequestHeader("Content-Type", "application/json");
152
+ xhr.onreadystatechange = function () {
153
+ if (xhr.readyState === 4 && xhr.status === 200) {
154
+ var response = JSON.parse(xhr.responseText);
155
+ updateValues_eep_set(response);
156
+ }
157
+ };
158
+ xhr.send();
159
+ }
160
+
161
+ fetchValues_eep_set();
162
+
163
+ </script>
164
+
165
+
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+
174
+
175
+
176
 
177
  <script>
178
 
 
212
 
213
 
214
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
215
 
216
 
217