-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
396 lines (371 loc) · 19.7 KB
/
index.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
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
<!--
Project Name: WS2021_5 ; AsthmAlarm
Team Members: Emily Luo, Matthew Shen, Esben Nielsen, Pranavi Gollamudi
Date: 6/03/2021
Task Description: Creates the home page of the AsthmAlarm Doctor Dashboard where doctors who are registered on the AsthmAlarm platform can view patient data
Contains:
A list of patients
Aesthetically pleasing navbar
Modals for logging in, registering as a doctor, and registering a patient under your name
A section that displays the information from the doctor's profile
-->
<!DOCTYPE html>
<html>
<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">
<title>AsthmAlarm Doctor Dashboard</title>
<!-- Bootstrap CSS CDN -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css"
integrity="sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4" crossorigin="anonymous">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous">
<!-- Our Custom CSS -->
<link rel="stylesheet" href="HTML/home.css">
<!-- Scrollbar Custom CSS -->
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/malihu-custom-scrollbar-plugin/3.1.5/jquery.mCustomScrollbar.min.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!-- Font Awesome JS -->
<script defer src="https://use.fontawesome.com/releases/v5.0.13/js/solid.js"
integrity="sha384-tzzSw1/Vo+0N5UhStP3bvwWPq+uvzCMfrN1fEFe+xBmv1C/AtVX5K0uZtmcHitFZ"
crossorigin="anonymous"></script>
<script defer src="https://use.fontawesome.com/releases/v5.0.13/js/fontawesome.js"
integrity="sha384-6OIrr52G08NpOFSZdxxz1xdNSndlD4vdcf/q2myIUVO0VsqaGHJsB0RaBE01VTOY"
crossorigin="anonymous"></script>
</head>
<body>
<div class="wrapper">
<!-- Sidebar -->
<nav id="sidebar">
<div class="sidebar-header">
<h3>AsthmAlarm Dashboard</h3>
</div>
<ul class="list-unstyled components">
<li>
<a href="index.html">Home
<svg xmlns="http://www.w3.org/2000/svg " style="text-align: right" width="16" height="16"
fill="currentColor" class="bi bi-house-fill" viewBox="0 0 16 16">
<path fill-rule="evenodd"
d="M8 3.293l6 6V13.5a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 2 13.5V9.293l6-6zm5-.793V6l-2-2V2.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5z" />
<path fill-rule="evenodd"
d="M7.293 1.5a1 1 0 0 1 1.414 0l6.647 6.646a.5.5 0 0 1-.708.708L8 2.207 1.354 8.854a.5.5 0 1 1-.708-.708L7.293 1.5z" />
</svg>
</a>
</li>
<li id = 'patient-reg'>
<a data-toggle="modal" data-target="#patientregModal" href = "#">
Register a Patient
</a>
</li>
<li id = 'patient-info'>
<a href="HTML/patient-info.html">
Patient Info
</a>
</li>
<li id = 'login'>
<a data-toggle="modal" data-target="#loginModal" href="#">
Login
</a>
</li>
<li id = 'register'>
<a data-toggle="modal" data-target="#registerModal" href="#">
Register
</a>
</li>
<li class="nav-item" id = 'logout'>
<a id="logout-btn" href="index1.html">Logout</a>
</li>
<li id = 'contact'>
<a data-toggle="modal" data-target="#contactModal" href="#">
Contact Us
</a>
</li>
</ul>
<div class="footer-on-the-bottom">
<footer class='footer fixed-bottom' style='padding-bottom: 10px;'>
<div style="margin-left: 60px; width: 185px;align-content: center;">
<span style="text-align: center;" id="sign-in-state">Signed Out</span>
</div>
</footer>
</div>
</nav>
<!-- Login Modal -->
<div class="modal fade" id="loginModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Doctor Login</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form class="row g-3" id='login-form'>
<div class="col-md-6">
<label for="inputEmailLogin" class="form-label">Email</label>
<input type="email" class="form-control" id="inputEmailLogin">
</div>
<div class="col-md-6">
<label for="inputPasswordLogin" class="form-label">Password</label>
<input type="password" class="form-control" id="inputPasswordLogin">
</div>
<div class="col-12">
<br></br>
<button class="btn btn-primary" id='login-btn'>Login</button>
</div>
</form>
</div>
<!-- <div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div> -->
</div>
</div>
</div>
<!-- Register Modal -->
<div class="modal fade" id="registerModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Register</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form class="row g-3" id='register-form'>
<div class="col-md-6">
<label for="inputFName" class="form-label">First Name</label>
<input type="text" class="form-control" id="inputFName">
</div>
<div class="col-md-6">
<label for="inputLName" class="form-label">Last Name</label>
<input type="text" class="form-control" id="inputLName">
</div>
<div class="col-md-6">
<label for="inputEmail4" class="form-label">Email</label>
<input type="email" class="form-control" id="inputEmail">
</div>
<div class="col-md-6">
<label for="inputPassword4" class="form-label">Password</label>
<input type="password" class="form-control" id="inputPassword">
</div>
<div class="col-md-12">
<label for="credentials" class="form-label">List of Credentials</label>
<textarea type="text" class="form-control" id="credentials"></textarea>
</div>
<h6>Address</h3>
<div class="col-md-6">
<label for="street_address" class="form-label">Street Address</label>
<input type="text" class="form-control" id="street_address">
</div>
<div class="col-md-6">
<label for="city" class="form-label">City</label>
<input type="text" class="form-control" id="city">
</div>
<div class="col-md-6">
<label for="state" class="form-label">State</label>
<input type="text" class="form-control" id="state">
</div>
<div class="col-md-6">
<label for="zip" class="form-label">Zip Code</label>
<input type="text" class="form-control" id="zip">
</div>
<div class="col-12">
<br></br>
<button class="btn btn-primary" id='register-btn'>Register</button>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- Patient Registration Modal -->
<div class="modal fade" id="patientregModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Register a Patient</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form class="row g-3" id='patientreg-form'>
<div class="col-md-6">
<label for="inputFNamePatient" class="form-label">First Name</label>
<input type="text" class="form-control" id="inputFNamePatient">
</div>
<div class="col-md-6">
<label for="inputLNamePatient" class="form-label">Last Name</label>
<input type="text" class="form-control" id="inputLNamePatient">
</div>
<div class="col-md-6">
<label for="inputEmailpatient" class="form-label">Email</label>
<input type="email" class="form-control" id="inputEmailpatient">
</div>
<div class="col-12">
<br></br>
<button class="btn btn-primary" id='reg-btn'>Register Patient</button>
</div>
</form>
</div>
</div>
</div>
</div>
<!--Contact Us-->
<div class="modal fade" id="contactModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Contact Us</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form class="row g-3" id='contact-form'>
<div class="col-md-6">
<label for="inputEmailFeedback" class="form-label">Email</label>
<input type="email" class="form-control" id="inputEmailFeedback">
</div>
<div class="col-md-6">
<label for="inputFeedback" class="form-label">Feedback</label>
<input type="info" class="form-control" id="inputFeedback">
</div>
<div class="col-12">
<br></br>
<button class="btn btn-primary" id='send-feedback-btn'>Send</button>
</div>
</form>
</div>
</div>
</div>
</div>
<div id="content" class = "text-center">
<div class="text-center">
<h1>AsthmAlarm Doctor Dashboard</h1>
</div>
<h3 style = "margin-top: 30px">About Us</h3>
<div class="" style = "padding-left: 30px; padding-right: 30px;">
<p style = "margin-left: 60px; margin-right: 60px">Welcome to the AsthmAlarm Web Portal!
AsthmAlarm is a wearable sensor that addresses nocturnal asthma by using surface electromyography (sEMG) electrodes to
monitor and alert patients if they are in danger of an asthma attack. On this website,
doctors can register for an account and gain access to a myriad of tools
that will make it easier to track their patients. They will be able to register patients
and receive daily graphed data of each individual patient after each night. </p>
</div>
<h3 style = "margin-top: 30px">Downloads</h3>
<div class="container">
<div class="row">
<div class="text-center col-6">
<h5>AsthmAlarm for Windows Application</h5>
<a href="#" class = "btn btn-primary">Download App</a>
</div>
<div class="text-center col-6">
<h5>AsthmAlarm for Windows User Guide</h5>
<a href="#" class = "btn btn-primary">Download Manual</a>
</div>
</div>
</div>
<div class="container">
<div class="text-center row">
<div class="col-6" style = "border-right: 2px solid #333; margin-top: 50px">
<h3 style = "margin-top: 30px">Doctor Profile</h3>
<div class = "row">
<div class = "col-6" style = "text-align: right;">
Name:
</div>
<div class="col-6" id = "doc_name" style = "text-align: left;"></div>
</div>
<div class = "row">
<div class = "col-6" style = "text-align: right;">
Email:
</div>
<div class="col-6" id = "doc_email" style = "text-align: left;"></div>
</div>
<div class = "row">
<div class = "col-6" style = "text-align: right;">
Credentials:
</div>
<div class="col-6" id = "doc_cred" style = "text-align: left;"></div>
</div>
</div>
<div class="col-6" style = "margin-top: 50px" id = "patient_cards">
<h3 style = "margin-top:30px">Patients</h3>
<!-- <div class="card">
<h5 class="card-header">Featured</h5>
<div class="card-body">
<p class="card-text">Last Session: </p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
<div class="card">
<h5 class="card-header">Featured</h5>
<div class="card-body">
<p class="card-text">Last Session: </p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div> -->
</div>
</div>
</div>
</div>
</div>
<!-- jQuery CDN - Slim version (=without AJAX) -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"></script>
<!-- Popper.JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js"
integrity="sha384-cs/chFZiN24E4KMATLdqdvsezGxaGsi4hLGOzlXwp5UZB1LY//20VyM2taTB4QvJ"
crossorigin="anonymous"></script>
<!-- Bootstrap JS -->
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js"
integrity="sha384-uefMccjFJAIv6A+rW+L4AHf99KvxDjWSu1z9VI8SKNVmz4sk7buKt/6v9KI65qnm"
crossorigin="anonymous"></script>
<!-- jQuery Custom Scroller CDN -->
<script
src="https://cdnjs.cloudflare.com/ajax/libs/malihu-custom-scrollbar-plugin/3.1.5/jquery.mCustomScrollbar.concat.min.js"></script>
<!-- <script src = '../JS/login.js'></script>
-->
<!--Firebase Libraries - Make sure the version matches your Firebase SDK snippet-->
<script src="https://www.gstatic.com/firebasejs/8.3.3/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.3.3/firebase-database.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.3.3/firebase-auth.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$("#sidebar").mCustomScrollbar({
theme: "minimal"
});
$('#sidebarCollapse').on('click', function () {
$('#sidebar, #content').toggleClass('active');
$('.collapse.in').toggleClass('in');
$('a[aria-expanded=true]').attr('aria-expanded', 'false');
});
});
</script>
<script>
const firebaseConfig = {
apiKey: "AIzaSyCe9YmRHZIV3RdGZOzBUBsrP3EMjLPYKx4",
authDomain: "asthmalarm.firebaseapp.com",
databaseURL: "https://asthmalarm.firebaseio.com",
projectId: "asthmalarm",
storageBucket: "asthmalarm.appspot.com",
messagingSenderId: "605997286935",
appId: "1:605997286935:web:4e5b0c59e0c539ccf53e52"
};
firebase.initializeApp(firebaseConfig);
</script>
<script src="JS/index.js"></script>
<!-- <script src="../JS/Materialize.js"></script> -->
<script src="JS/status-bar.js"></script>
<!-- <script src="../JS/status-bar.js"></script> -->
</body>
</html>