-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·86 lines (86 loc) · 4.5 KB
/
index.html
File metadata and controls
executable file
·86 lines (86 loc) · 4.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<!-- icons generated via https://iconifier.net/ -->
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="apple-touch-icon" href="/img/apple-touch-icon.png" />
<link rel="apple-touch-icon" sizes="57x57" href="/img/apple-touch-icon-57x57.png" />
<link rel="apple-touch-icon" sizes="72x72" href="/img/apple-touch-icon-72x72.png" />
<link rel="apple-touch-icon" sizes="76x76" href="/img/apple-touch-icon-76x76.png" />
<link rel="apple-touch-icon" sizes="114x114" href="/img/apple-touch-icon-114x114.png" />
<link rel="apple-touch-icon" sizes="120x120" href="/img/apple-touch-icon-120x120.png" />
<link rel="apple-touch-icon" sizes="144x144" href="/img/apple-touch-icon-144x144.png" />
<link rel="apple-touch-icon" sizes="152x152" href="/img/apple-touch-icon-152x152.png" />
<link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon-180x180.png" />
<link rel="stylesheet" href="/css/styles.css">
<title>Redőny</title>
<script src="/js/jquery-3.6.0.min.js"></script>
<script>
$(document).ready(function() {
$('.btn').click(function() {
const data = this.name.split('-');
var btn = this;
btn.disabled = true;
$.ajax({
url: 'api/shutter',
data: { "device": data[0],
"cmd": data[1] },
type: 'post',
complete: function() {
btn.disabled = false;
}
});
});
});
</script>
</head>
<body>
<div class="content">
<article class="device-group">
<article class="device-button-container triple-group">
<div class="button-header">Ház</div>
<input type="button" class="btn up" name="house-up">
<input type="button" class="btn stop" name="house-stop">
<input type="button" class="btn down" name="house-down">
</article>
</article>
<article class="device-group">
<article class="device-button-container double-group">
<div class="button-header">Konyha</div>
<input type="button" class="btn up" name="kitchen-up">
<input type="button" class="btn stop" name="kitchen-stop">
<input type="button" class="btn down" name="kitchen-down">
</article>
<article class="device-button-container double-group">
<div class="button-header">Nappali</div>
<input type="button" class="btn up" name="lroom-up">
<input type="button" class="btn stop" name="lroom-stop">
<input type="button" class="btn down" name="lroom-down">
</article>
</article>
<article class="device-group">
<article class="device-button-container single-group">
<div class="button-header">N. bal</div>
<input type="button" class="btn up" name="lroom_l-up">
<input type="button" class="btn stop" name="lroom_l-stop">
<input type="button" class="btn down" name="lroom_l-down">
</article>
<article class="device-button-container single-group">
<div class="button-header">N. közép</div>
<input type="button" class="btn up" name="lroom_m-up">
<input type="button" class="btn stop" name="lroom_m-stop">
<input type="button" class="btn down" name="lroom_m-down">
</article>
<article class="device-button-container single-group">
<div class="button-header">N. jobb</div>
<input type="button" class="btn up" name="lroom_r-up">
<input type="button" class="btn stop" name="lroom_r-stop">
<input type="button" class="btn down" name="lroom_r-down">
</article>
</article>
</div>
</body>
</html>