DmitrMakeev commited on
Commit
fe96440
1 Parent(s): 41ea351

Update settings.html

Browse files
Files changed (1) hide show
  1. settings.html +14 -1
settings.html CHANGED
@@ -47,7 +47,10 @@ input[type="number"] {
47
  <label for="ph_on_set">Новое : </label>
48
  <input type="number" id="ph_on_set" value="2.5" min="0.1" max="20" step="0.01">
49
  </form>
50
- <br>
 
 
 
51
  <h4>Уровень EC</h4>
52
  <p>EEPROM : <span id="ec_eep"></span></p>
53
 
@@ -158,6 +161,16 @@ input[type="number"] {
158
  xhr.send();
159
  });
160
  </script>
 
 
 
 
 
 
 
 
 
 
161
 
162
  </body>
163
  </html>
 
47
  <label for="ph_on_set">Новое : </label>
48
  <input type="number" id="ph_on_set" value="2.5" min="0.1" max="20" step="0.01">
49
  </form>
50
+ <button id="EC_set_but" type="button" class="btn btn-primary">Записать</button>
51
+
52
+
53
+ <br><br>
54
  <h4>Уровень EC</h4>
55
  <p>EEPROM : <span id="ec_eep"></span></p>
56
 
 
161
  xhr.send();
162
  });
163
  </script>
164
+
165
+ <script>
166
+ document.getElementById("EC_set_but").addEventListener("click", function() {
167
+ var pHValue = document.getElementById("EC_set").value;
168
+ var xhr = new XMLHttpRequest();
169
+ xhr.open("GET", "/EC_set?value=" + pHValue, true);
170
+ xhr.send();
171
+ });
172
+ </script>
173
+
174
 
175
  </body>
176
  </html>