-
Notifications
You must be signed in to change notification settings - Fork 2
/
room_list.html
259 lines (239 loc) · 13.6 KB
/
room_list.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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>TechHaus</title>
<link rel="stylesheet" type="text/css" href="room_list.css"/>
<script src="js/jquery-3.3.1.js"></script>
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
</head>
<body>
<nav>
<a href="./home_barra.html">
<img src="Iconos/Logo4.png" alt="Home" id="logo">
</a>
<div class="dropdown" >
<img src="Iconos/Settings.png" alt="Settings" id="settings_icon" class="navbar_item">
<div id="myDropdown" class="dropdown-content" >
<a href="./help.html">Help</a>
</div>
</div>
<a class="navbar_item" href="./routines.html">Routines</a>
<a class="navbar_item" href="./rooms.html">Rooms</a>
<a class="navbar_item" href="./devices.html">Devices</a>
</nav>
<!-- Add Device Modal -->
<div class="modal fade" id="add_room_popup" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true" id="mymodal">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLongTitle">Add Device</h5>
<button type="button" class="close" data-dismiss="modal" onclick="cancel_add(event,this)" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div>
<p id="name-tag">Name*</p>
<a href="#" role="button" data-toggle="popover" data-content="Name is required and must contain at least 3 letters, and no 'ñ' or symbols"><img src="Iconos/question.png" class="more_info1"></a>
</div>
<input type="text" class="text-input" id="device_input">
<div><p id="room-tag">Type*</p>
<a href="#" role="button" data-toggle="popover" data-content="Type is required. Functionalities vary based on the type of device" class="more_info3"><img src="Iconos/question.png" class="more_info2"></a>
</div>
<select class="text-input" id="room_input">
<option>Alarm</option>
<option>Door</option>
<option>AC</option>
<option>Refrigerator</option>
<option>Lamp</option>
<option>Oven</option>
<option>Blind</option>
</select>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal" onclick="cancel_add(event,this)">Cancel</button>
<button type="button" class="btn btn-primary" onclick="add_device(event, this)">Add</button>
</div>
</div>
</div>
</div>
<!-- Change Password Modal -->
<div class="modal fade" id="change_pass_popup" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLongTitle">Change Password</h5>
<button type="button" class="close" data-dismiss="modal" onclick="close_changepass(event,this)" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div>
<p id="old-pass-tag">Old password</p>
<a href="#" role="button" data-toggle="popover" data-content="Old password is not required. Default password is 1234"><img src="Iconos/question.png" class="more_info1"></a>
</div>
<input type="text" class="text-input" id="old_pass_input">
<div>
<p id="new-pass-tag">New password*</p>
<a href="#" role="button" data-toggle="popover" data-content="New password is required and must be a 4-digit number" class="more_info3"><img src="Iconos/question.png" class="more_info1"></a>
</div>
<input type="text" class="text-input" id="new_pass_input">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal" onclick="close_changepass(event,this)">Cancel</button>
<button type="button" class="btn btn-primary" onclick="change_pass(event, this)">Change</button>
</div>
</div>
</div>
</div>
<!-- ArmStay Ask Password Modal -->
<div class="modal fade" id="ask_pass_armstay_popup" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLongTitle">Enter Password</h5>
<button type="button" class="close" data-dismiss="modal" onclick="cancel_armaway(event,this)" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div>
<p id="pass1-tag">Password</p>
<a href="#" role="button" data-toggle="popover" data-content="Password is required for alarm status to change, but an incorrect password will also be processed"><img src="Iconos/question.png" class="more_info1"></a>
</div>
<input type="text" class="text-input" id="pass1_input">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal" onclick="cancel_armstay(event,this)">Cancel</button>
<button type="button" class="btn btn-primary" onclick="armstay_confirm(event, this)">Confirm</button>
</div>
</div>
</div>
</div>
<!-- ArmAway Ask Password Modal -->
<div class="modal fade" id="ask_pass_armaway_popup" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLongTitle">Enter Password</h5>
<button type="button" class="close" data-dismiss="modal" onclick="cancel_armaway(event,this)" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div>
<p id="pass2-tag">Password</p>
<a href="#" role="button" data-toggle="popover" data-content="Password is required for alarm status to change, but an incorrect password will also be processed"><img src="Iconos/question.png" class="more_info1"></a>
</div>
<input type="text" class="text-input" id="pass2_input">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal" onclick="cancel_armaway(event,this)">Cancel</button>
<button type="button" class="btn btn-primary" onclick="armaway_confirm(event, this)">Confirm</button>
</div>
</div>
</div>
</div>
<!-- Disarm Ask Password Modal -->
<div class="modal fade" id="ask_pass_disarm_popup" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLongTitle">Enter Password</h5>
<button type="button" class="close" data-dismiss="modal" onclick="cancel_disarm(event,this)" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div>
<p id="pass3-tag">Password</p>
<a href="#" role="button" data-toggle="popover" data-content="Password is required for alarm status to change, but an incorrect password will also be processed"><img src="Iconos/question.png" class="more_info1"></a>
</div>
<input type="text" class="text-input" id="pass3_input">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal" onclick="cancel_disarm(event,this)">Cancel</button>
<button type="button" class="btn btn-primary" onclick="disarm_confirm(event, this)">Confirm</button>
</div>
</div>
</div>
</div>
<!-- Delete Device Modal -->
<div class="modal fade" id="delete_device_popup" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLongTitle">Delete Device</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p id="msg-tag"></p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-primary" onclick="delete_device(event, this)" data-dismiss="modal">Confirm</button>
</div>
</div>
</div>
</div>
<aside>
<ul class="breadcrumb">
<li><a href="./rooms.html">Rooms</a></li>
<li id="breadcrumbfinal">Kitchen</li>
</ul>
<img src="Iconos/kitchen1.png" alt="Kitchen" id="deviceicon">
</aside>
<section>
<article class="title_article">
<div>
<div class="search-container">
<form action=""> <!--/action_page.php-->
<button type="submit"><img src="Iconos/search_icon.png" id="search_icon"></img></button>
<span><input type="text" class="search rounded" onkeyup="searching();" placeholder="Search..." id="myInput"></span>
</form>
</div>
<div class="category_title">
<div>
<h1 id="title" class="title_elements" onclick="edit_nameRoom(event,this);" onmouseover="pencil_display(event,this);" onmouseout="pencil_out(event,this);">Waiting for connection</h1>
<img src="Iconos/pencil.png" alt="Pencil" class="pencil_icon">
<div>
<span><input type="text" value="" class="new_room_name" onclick="input_nameRoom(event,this)"></input></span>
</div>
<img src="https://www.materialui.co/materialIcons/content/add_circle_grey_192x192.png" alt="add" id="addicon" class="add" data-toggle="modal" data-target="#add_room_popup">
</div>
</div>
</div>
</article>
<article class="list_article">
<div class="devices_list_box">
<div class="devices_list" id="devices_list">
</div>
</div>
</article>
<div class="notice">
<div class="routine_played">
<h1 id='name'></h1>
</div>
</div>
</section>
<footer>
<div id="footer">
<p>Copyright © 2018, TechHaus. All rights reserved.</p>
</div>
</footer>
<script src="js/api.js"></script>
<script src="js/room_list.js"></script>
<!-- <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" 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://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<noscript>
<META HTTP-EQUIV="Refresh" CONTENT="0;URL=ShowErrorPage.html">
</noscript>
</body>
</html>