-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtoggle.php
More file actions
21 lines (16 loc) · 995 Bytes
/
toggle.php
File metadata and controls
21 lines (16 loc) · 995 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<link rel="stylesheet" href="./css/style.css"><link rel="stylesheet" href="./css/button.css">
<script src="js/jquery.min.js"></script>
<div class="module cooling">
<div class="module-name">
<h2>Klimatyzacja</h2>
<button data-mode="pwm" data-pin="18" onclick="toggle(this)" value="OFF" class="OFF">OFF</button>
</div>
<div class="module-settings"><img src="img/fan.jpg" alt="Wentylator" class="off"></div>
</div>
<div class="module heating">
<div class="module-name">
<h2>Ogrzewanie</h2>
</div>
<div class="module-settings"><img src="img/heating.jpg" alt="Płonące drzewo" class="on"><button data-mode="stan" data-pin="21" onclick="toggle(this)" value="OFF" class="OFF">OFF</button></div>
</div>
<script src="js/button.js"></script>