DmitrMakeev commited on
Commit
f0e5848
1 Parent(s): 5b7131d

Update settings.html

Browse files
Files changed (1) hide show
  1. settings.html +28 -2
settings.html CHANGED
@@ -102,7 +102,7 @@ input[type="number"] {
102
 
103
 
104
 
105
-
106
  <br> <br>
107
  <h4>Свет ON </h4>
108
  <p>EEPROM: <span id="l_ON_h_eep"></span> : <span id="l_ON_m_eep"></span></p>
@@ -114,7 +114,10 @@ input[type="number"] {
114
  <label for="l_ON_m_set">Новое m : </label>
115
  <input type="number" id="l_ON_m_set" value="30" min="0" max="59" step="1">
116
  </form>
117
- <br>
 
 
 
118
  <h4>Свет OFF </h4>
119
  <p>EEPROM: <span id="l_OFF_h_eep"></span> : <span id="l_OFF_m_eep"></span></p>
120
  <form>
@@ -125,6 +128,10 @@ input[type="number"] {
125
  <label for="l_OFF_m_set">Новое m : </label>
126
  <input type="number" id="l_OFF_m_set" value="30" min="0" max="59" step="1">
127
  </form>
 
 
 
 
128
  <br>
129
  <h4>Тем. воздуха</h4>
130
  <p>EEPROM : <span id="t_Voz_eep"></span></p>
@@ -264,7 +271,26 @@ input[type="number"] {
264
  });
265
  </script>
266
 
 
 
 
 
 
 
 
 
 
 
267
 
 
 
 
 
 
 
 
 
 
268
 
269
 
270
 
 
102
 
103
 
104
 
105
+ <!-- Свет ON -->
106
  <br> <br>
107
  <h4>Свет ON </h4>
108
  <p>EEPROM: <span id="l_ON_h_eep"></span> : <span id="l_ON_m_eep"></span></p>
 
114
  <label for="l_ON_m_set">Новое m : </label>
115
  <input type="number" id="l_ON_m_set" value="30" min="0" max="59" step="1">
116
  </form>
117
+ <button id="l_ON_set" type="button" class="btn btn-primary">Записать</button>
118
+
119
+ <!-- Свет OFF -->
120
+ <br><br>
121
  <h4>Свет OFF </h4>
122
  <p>EEPROM: <span id="l_OFF_h_eep"></span> : <span id="l_OFF_m_eep"></span></p>
123
  <form>
 
128
  <label for="l_OFF_m_set">Новое m : </label>
129
  <input type="number" id="l_OFF_m_set" value="30" min="0" max="59" step="1">
130
  </form>
131
+ <button id="l_OFF_set" type="button" class="btn btn-primary">Записать</button>
132
+
133
+
134
+
135
  <br>
136
  <h4>Тем. воздуха</h4>
137
  <p>EEPROM : <span id="t_Voz_eep"></span></p>
 
271
  });
272
  </script>
273
 
274
+ <script>
275
+ document.getElementById("ec_C_set_but").addEventListener("click", function() {
276
+ var ec_C_setValue = document.getElementById("ec_C_set").value;
277
+ var xhr = new XMLHttpRequest();
278
+ xhr.open("GET", "/ec_C_set?value=" + ec_C_setValue, true);
279
+ xhr.send();
280
+ });
281
+ </script>
282
+
283
+
284
 
285
+ <script>
286
+ document.getElementById("l_ON_set").addEventListener("click", function() {
287
+ var l_ON_h_set = document.getElementById("l_ON_h_set").value;
288
+ var l_ON_m_set = document.getElementById("l_ON_m_set").value;
289
+ var xhr = new XMLHttpRequest();
290
+ xhr.open("GET", "/l_ON_set?l_ON_h_set=" + var l_ON_h_set + "&l_ON_m_set=" + var l_ON_m_set , true);
291
+ xhr.send();
292
+ });
293
+ </script>
294
 
295
 
296