forked from Jomsaruj/Light-up-the-room
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Home.html
200 lines (156 loc) · 8.96 KB
/
Home.html
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<!DOCTYPE html>
<html lang="en">
<head>
<title>Home</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="css/home.css">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous">
</head>
<body>
<nav class ="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
<a class="navbar-brand " style="margin-left: 10px ;" href = "Home.html">Light Up The Room</a>
<div class="collapse navbar-collapse">
<ul class= "navbar-nav " role="navigation">
<li class="nav-item">
<a class="nav-link text-light" href="time_form.html">Wanna Go?</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle text-light" href="" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
GRAPH
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
<li><a class="dropdown-item" href="cost_graph.html">COST GRAPH</a></li>
<li><a class="dropdown-item" href="time_graph.html">TIME GRAPH</a></li>
<li><a class="dropdown-item" href="human_graph.html">HUMAN GRAPH</a></li>
</ul>
</li>
</ul>
</div>
</nav>
<header class="page-header header container-fluid" id="header">
<div class = "jumbotron">
<h1 class="display-4">Light Up The Room</h1>
</div>
<p id="header_alert">ขออภัยครับ ขณะนี้ห้องเต็ม</p>
</header>
<!-- --------------------------------------------------------------------------------------- -->
<div class="color-container1">
<div id = "w1" class="color-container-white">
<div class="text-container-white">WHITE</div>
</div>
<div id = "r1" class="color-container-red">
<div class="text-container-red">RED</div>
</div>
<div id = "g1" class="color-container-green">
<div class="text-container-green"></p>GREEN</div>
</div>
<div id = "b1" class="color-container-blue">
<div class="text-container-blue"">BLUE</div>
</div>
</div>
<div class="color-container2">
<div id = "w2" class="color-container-white">
<div class="text-container-white">WHITE</div>
</div>
<div id = "r2" class="color-container-red">
<div class="text-container-red">RED</div>
</div>
<div id = "g2" class="color-container-green">
<div class="text-container-green"></p>GREEN</div>
</div>
<div id = "b2" class="color-container-blue">
<div class="text-container-blue">BLUE</div>
</div>
</div>
<div class="container-fluid">
<p1 class="light1text">Light 1</p1>
<p1 class="light2text">Light 2</p1>
</div>
<div class="showswitch">
<span class="switch1 border border-dark shadow-lg" id = "status1">
<p id="status1_text">OFF</p>
</span>
<span class="switch2 border border-dark shadow-lg" id = "status2">
<p id="status2_text">OFF</p>
</span>
</div>
<div class="container-btn">
<button type="button" class="btn btn-dark" id="btn1" data-bs-toggle="modal" data-bs-target="#activate_1">Activate</button>
<button type="button" class="btn btn-dark" id="btn2" data-bs-toggle="modal" data-bs-target="#activate_2">Activate</button>
</div>
<!-- pop up light 1 -->
<div class="modal fade " id="activate_1" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="staticBackdropLabel">Select The Light</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="form-check form-switch">
<input id = "whiteswitch1" type="checkbox" class="form-check-input" id="WhiteSelect">
<label class="form-check-label" for="validationFormCheck1">White</label>
</div>
<div class="form-check form-switch">
<input id = "redswitch1" type="checkbox" class="form-check-input" id="RedSelect" >
<label class="form-check-label" for="validationFormCheck2">Red</label>
</div>
<div class="form-check form-switch">
<input id = "greenswitch1" type="checkbox" class="form-check-input" id="GreenSelect" >
<label class="form-check-label" for="validationFormCheck3">Green</label>
</div>
<div class="form-check form-switch">
<input id = "blueswitch1" type="checkbox" class="form-check-input" id="BlueSelect" >
<label class="form-check-label" for="validationFormCheck4">Blue</label>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button id = "turn_on1" type="button" class="btn btn-primary" data-bs-dismiss="modal">Turn On</button>
<button id = "turn_off1" type="button" class="btn btn-danger" data-bs-dismiss="modal">Turn Off</button>
</div>
</div>
</div>
</div>
<!-- pop up light 2 -->
<div class="modal fade " id="activate_2" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="staticBackdropLabel">Select The Light</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="form-check form-switch">
<input id = "whiteswitch2" type="checkbox" class="form-check-input" id="WhiteSelect">
<label class="form-check-label" for="validationFormCheck1">White</label>
</div>
<div class="form-check form-switch">
<input id = "redswitch2" type="checkbox" class="form-check-input" id="RedSelect" >
<label class="form-check-label" for="validationFormCheck2">Red</label>
</div>
<div class="form-check form-switch">
<input id = "greenswitch2" type="checkbox" class="form-check-input" id="GreenSelect" >
<label class="form-check-label" for="validationFormCheck3">Green</label>
</div>
<div class="form-check form-switch">
<input id = "blueswitch2" type="checkbox" class="form-check-input" id="BlueSelect" >
<label class="form-check-label" for="validationFormCheck4">Blue</label>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button id = "turn_on2" type="button" class="btn btn-primary" data-bs-dismiss="modal">Turn On</button>
<button id = "turn_off2" type="button" class="btn btn-danger" data-bs-dismiss="modal">Turn Off</button>
</div>
</div>
</div>
</div>
<!-- --------------------------------------------------------------------------------------- -->
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-b5kHyXgcpbZJO/tY9Ul7kGkf1S0CWuKcCD38l8YkeH8z8QjE0GmW1gYU5S9FOnJ0" crossorigin="anonymous"></script>
<script src="js/home.js"></script>
</body>
</html>