DmitrMakeev commited on
Commit
42c576d
1 Parent(s): 74b1f4e

Update settings.html

Browse files
Files changed (1) hide show
  1. settings.html +17 -2
settings.html CHANGED
@@ -76,7 +76,7 @@ input[type="number"] {
76
  </form>
77
  <button id="ec_A_set_but" type="button" class="btn btn-primary">Записать</button>
78
 
79
-
80
  <br><br>
81
  <h4>EC доз. B_ON sec.</h4>
82
  <p>EEPROM : <span id="ec_B_eep"></span></p>
@@ -85,7 +85,12 @@ input[type="number"] {
85
  <label for="ec_B_set">Новое : </label>
86
  <input type="number" id="ec_B_set" value="1.5" min="0.1" max="20" step="0.01">
87
  </form>
88
- <br>
 
 
 
 
 
89
  <h4>EC доз. C_ON sec.</h4>
90
  <p>EEPROM : <span id="ec_C_eep"></span></p>
91
 
@@ -235,6 +240,16 @@ input[type="number"] {
235
  </script>
236
 
237
 
 
 
 
 
 
 
 
 
 
 
238
 
239
  </body>
240
  </html>
 
76
  </form>
77
  <button id="ec_A_set_but" type="button" class="btn btn-primary">Записать</button>
78
 
79
+ <!-- EC доз. B_ON sec. -->
80
  <br><br>
81
  <h4>EC доз. B_ON sec.</h4>
82
  <p>EEPROM : <span id="ec_B_eep"></span></p>
 
85
  <label for="ec_B_set">Новое : </label>
86
  <input type="number" id="ec_B_set" value="1.5" min="0.1" max="20" step="0.01">
87
  </form>
88
+ <button id="ec_B_set_but" type="button" class="btn btn-primary">Записать</button>
89
+
90
+
91
+
92
+
93
+ <br><br>
94
  <h4>EC доз. C_ON sec.</h4>
95
  <p>EEPROM : <span id="ec_C_eep"></span></p>
96
 
 
240
  </script>
241
 
242
 
243
+ <script>
244
+ document.getElementById("ec_B_set_but").addEventListener("click", function() {
245
+ var ec_B_setValue = document.getElementById("ec_B_set").value;
246
+ var xhr = new XMLHttpRequest();
247
+ xhr.open("GET", "/ec_B_set?value=" + ec_B_setValue, true);
248
+ xhr.send();
249
+ });
250
+ </script>
251
+
252
+
253
 
254
  </body>
255
  </html>