-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
437 lines (421 loc) · 21.4 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
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
<!DOCTYPE html>
<html><!--HTML5 doctype-->
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta http-equiv="Pragma" content="no-cache">
<script type="text/javascript" charset="utf-8" src="intelxdk.js"></script>
<script type="text/javascript" language="javascript">
// This event handler is fired once the intel libraries are ready
function onDeviceReady() {
//hide splash screen now that our app is ready to run
intel.xdk.device.hideSplashScreen();
setTimeout(function () {
$.ui.launch();
}, 50);
}
//initial event handler to detect when intel is ready to roll
document.addEventListener("intel.xdk.device.ready", onDeviceReady, false);
</script>
<script src="js/appframework.ui.min.js"></script>
<script>
$.ui.autoLaunch = false;
$.ui.useOSThemes = true; //Change this to false to force a device theme
$.ui.blockPageScroll();
$(document).ready(function () {
if ($.ui.useOSThemes && !$.os.ios && $("#afui").get(0).className !== "ios")
$("#afui").removeClass("ios");
});
</script>
<link href="css/icons.css" rel="stylesheet" type="text/css">
<link href="css/af.ui.css" rel="stylesheet" type="text/css">
</head>
<div id="afui" class="ios">
<div id="header"></div>
<div id="content" style="">
<div class="panel" title="VitaMeds Tracker" data-nav="nav_0" id="main" selected="selected"
style="" data-appbuilder-object="page">
<div class="grid" data-appbuilder-object="grid3" style="z-index: 0;">
</div>
<ul class="list" data-appbuilder-object="list">
<li><a href="#medications">Medications</a>
</li>
<li><a href="#recResult">Results</a>
</li>
<li><a href="#viewReport">Reports</a>
</li>
</ul>
</div>
<div class="panel" title="Add Medication" data-nav="nav_0" id="addMed" data-appbuilder-object="page"
style="">
<div class="input_element form_element" style="width:100%;overflow:hidden" data-appbuilder-object="input">
<label for="inMed">Medication</label>
<input type="text" style="float:left;" id="inMed" placeholder="Name">
</div>
<div class="grid" data-appbuilder-object="grid2">
<div class="container col2" data-appbuilder-object="container">
<div class="input_element form_element" style="width: 100%; overflow: hidden;"
data-appbuilder-object="input">
<label for="inDose">Dose</label>
<input type="text" style="float:left;" id="inDose" placeholder="Quantity">
</div>
</div>
<div class="container col2" data-appbuilder-object="container">
<div class="select_element form_element" style="width:100%;overflow:hidden" data-appbuilder-object="select">
<label for="inUnits">Units</label>
<select id="inUnits">
<option value="pills" selected="">Pills</option>
<option value="oz">oz</option>
<option value="mg">mg</option>
<option value="tsp">tsp</option>
<option value="tbs">Tbs</option>
</select>
</div>
</div>
</div>
<div class="grid" data-appbuilder-object="grid2">
<div class="container col2" data-appbuilder-object="container">
<div class="input_element form_element" style="width: 100%; overflow: hidden;"
data-appbuilder-object="input">
<label for="inFreq">Every</label>
<input type="text" style="float:left;" id="inFreq" placeholder="Number">
</div>
</div>
<div class="container col2" data-appbuilder-object="container">
<div class="select_element form_element" style="width:100%;overflow:hidden" data-appbuilder-object="select">
<label for="inRepeat">Time</label>
<select id="inRepeat">
<option value="hours" selected="">Hours</option>
<option value="days">Days</option>
</select>
</div>
</div>
</div>
<form style="width: 100%;min-height: 50px;" data-appbuilder-object="form" class="">
<div class="select_element form_element" style="width:100%;overflow:hidden" data-appbuilder-object="select">
<label for="firstDose">Take First Dose</label>
<select id="firstDose">
<option value="now" selected="">Now</option>
<option value="tonight">Tonight</option>
<option value="morning">Tomorrow Morning</option>
</select>
</div>
</form>
<div class="toggle_element form_element" style="overflow: hidden; z-index: 0;"
data-appbuilder-object="toggle">
<label>Dosage Reminders</label>
<input type="checkbox" id="medReminders" class="toggle" checked="">
<label for="medReminders" data-on="Yes" data-off="No"><span></span>
</label>
</div>
<div class="toggle_element form_element" style="overflow: hidden;" data-appbuilder-object="toggle">
<label>Caregiver Notifications</label>
<input type="checkbox" id="medNotify" class="toggle" checked="">
<label for="medNotify" data-on="Yes" data-off="No"><span></span>
</label>
</div>
<div class="toggle_element form_element" style="overflow:hidden" data-appbuilder-object="toggle">
<label>Refill Reminders</label>
<input type="checkbox" id="medRefill" class="toggle" checked="">
<label for="medRefill" data-on="Yes" data-off="No"><span></span>
</label>
</div>
<a class="button" href="#main" style="" data-appbuilder-object="button" data-transition="slide"
id="addSubmit">Done</a>
</div>
<div class="panel" title="Record Results" data-nav="nav_0" id="recResult" data-appbuilder-object="page"
style="position: relative; z-index: 2;">
<ul class="list" data-appbuilder-object="list">
<li><a href="#feelPain">Pain</a>
</li>
<li><a href="#feelSick">Nausea</a>
</li>
<li><a href="#feelMood">Mood</a>
</li>
</ul>
</div>
<div class="panel" title="Settings" data-nav="nav_0" id="settings" data-appbuilder-object="page"
style="">
<ul class="list" data-appbuilder-object="list">
<li><a href="#setupHelpers">Setup Caregivers</a>
</li>
</ul>
</div>
<div class="panel" title="Reports" data-nav="nav_0" id="viewReport" data-appbuilder-object="page"
style="">
<ul class="list" data-appbuilder-object="list">
<li><a href="#medList">Medication List</a>
</li>
<li><a href="#doseSchedule">Dosage Schedule</a>
</li>
<li><a href="#doseHistory">Dosage History</a>
</li>
<li><a href="#resultsHistory">Results History</a>
</li>
<li><a href="#combinedHistory">Combined History</a>
</li>
</ul>
</div>
<div class="panel" title="Medications" data-nav="nav_0" id="medications" data-appbuilder-object="page"
style="">
<ul class="list" data-appbuilder-object="list">
<li><a href="#addMed">Add</a>
</li>
<li><a href="#takeMed">Take</a>
</li>
<li><a href="#refillMed">Refill</a>
</li>
<li><a href="#updateDose">Edit Dosage</a>
</li>
<li><a href="#deleteMed">Delete</a>
</li>
</ul>
</div>
<div class="panel" title="Take Medication" data-nav="nav_0" id="takeMed" data-appbuilder-object="page"
style="">
<div class="select_element form_element" style="width:100%;overflow:hidden" data-appbuilder-object="select">
<label for="selectTake">Medication</label>
<select id="selectTake">
<option value="Aspirin" selected="">Aspirin</option>
<option value="Tylenol">Tylenol</option>
<option value="Penicillin">Penicillin</option>
</select>
</div>
<div class="input_element form_element" style="width: 100%; overflow: hidden;"
data-appbuilder-object="input">
<label for="inDose">Dose</label>
<input type="text" style="float:left;" id="inDose" placeholder="Quantity" value="2">
</div>
<div class="input_element form_element" style="width:100%;overflow:hidden" data-appbuilder-object="input">
<label for="timeTaken">Time Taken</label>
<input type="text" style="float:left;" id="timeTaken" placeholder="12:30 PM">
</div>
<a class="button" href="#main" style="" data-appbuilder-object="button" data-transition="slide"
id="submitTake">Done</a>
<a class="button" href="#main" style="position: relative; z-index: 2;" data-appbuilder-object="button"
data-transition="slide" id="skipTake">Skip Dose</a>
</div>
<div class="panel" title="Refill Medication" data-nav="nav_0" id="refillMed" data-appbuilder-object="page"
style="margin: 0px auto;">
<div class="select_element form_element" style="width:100%;overflow:hidden" data-appbuilder-object="select">
<label for="refillSelect">Medication</label>
<select id="refillSelect">
<option value="Aspirin" selected="">Aspirin</option>
<option value="Tylenol">Tylenol</option>
<option value="Penicillin">Penicillin</option>
</select>
</div>
<div class="textarea_element form_element" style="width:100%;overflow:hidden" data-appbuilder-object="textarea">
<label for="onHand">Quantity on Hand</label>
<textarea id="onHand">4</textarea>
</div>
<a class="button" href="#main" style="" data-appbuilder-object="button" data-transition="slide"
id="doUpdateQty">Update</a>
<div class="textarea_element form_element" style="width:100%;overflow:hidden" data-appbuilder-object="textarea">
<label for="refillQty">Refill Quantity</label>
<textarea id="refillQty">30</textarea>
</div><a class="button" href="#main" style="margin: 0px auto;" data-appbuilder-object="button"
data-transition="slide" id="doRefill">Refill</a>
</div>
<div class="panel" title="Edit Dosage" data-nav="nav_0" id="updateDose" data-appbuilder-object="page"
style="">
<div class="select_element form_element" style="width:100%;overflow:hidden" data-appbuilder-object="select">
<label for="editSelect">Medication</label>
<select id="editSelect">
<option value="Aspirin" selected="">Aspirin</option>
<option value="Tylenol">Tylenol</option>
<option value="Penicillin">Penicillin</option>
</select>
</div>
<div class="grid" data-appbuilder-object="grid2">
<div class="container col2" data-appbuilder-object="container">
<div class="input_element form_element" style="width: 100%; overflow: hidden;"
data-appbuilder-object="input">
<label for="inDose">Dose</label>
<input type="text" style="float:left;" id="inDose" placeholder="Quantity">
</div>
</div>
<div class="container col2" data-appbuilder-object="container">
<div class="select_element form_element" style="width:100%;overflow:hidden" data-appbuilder-object="select">
<label for="inUnits">Units</label>
<select id="inUnits">
<option value="pills" selected="">Pills</option>
<option value="oz">oz</option>
<option value="mg">mg</option>
</select>
</div>
</div>
</div>
<div class="grid" data-appbuilder-object="grid2">
<div class="container col2" data-appbuilder-object="container">
<div class="input_element form_element" style="width: 100%; overflow: hidden;"
data-appbuilder-object="input">
<label for="inFreq">Every</label>
<input type="text" style="float:left;" id="inFreq" placeholder="Number">
</div>
</div>
<div class="container col2" data-appbuilder-object="container">
<div class="select_element form_element" style="width:100%;overflow:hidden" data-appbuilder-object="select">
<label for="inRepeat">Time</label>
<select id="inRepeat">
<option value="hours" selected="">Hours</option>
<option value="days">Days</option>
</select>
</div>
</div>
</div>
<a class="button" href="#main" style="" data-appbuilder-object="button" data-transition="slide"
id="submitEdit">Done</a>
</div>
<div class="panel" title="Record Pain" data-nav="nav_0" id="feelPain" data-appbuilder-object="page"
style="">
<div class="select_element form_element" style="width:100%;overflow:hidden" data-appbuilder-object="select">
<label for="painLevel">Pain Level</label>
<select id="painLevel">
<option value="0" selected="">0 - No Pain</option>
<option value="1">1 - Mild Pain</option>
<option value="2">2 - Moderate Pain</option>
<option value="3">3 - Severe Pain</option>
<option value="4">4 - Worst Pain Possible</option>
<option value="5">5 - Please Kill Me!</option>
</select>
</div>
<div class="select_element form_element" style="width:100%;overflow:hidden" data-appbuilder-object="select">
<label for="painLocation">Pain Location</label>
<select id="painLocation">
<option value="head" selected="">Head</option>
<option value="neck">Neck</option>
<option value="chest">Chest</option>
<option value="stomach">Stomach</option>
<option value="groin">Groin</option>
<option value="arm">Arm</option>
<option value="leg">Leg</option>
<option value="pinky">Pinky Toe</option>
</select>
</div><a class="button" href="#main" style="" data-appbuilder-object="button"
data-transition="slide" id="submitPain">Done</a>
</div>
<div class="panel" title="Record Nausea" data-nav="nav_0" id="feelSick" data-appbuilder-object="page"
style=""></div>
<div class="panel" title="Record Mood" data-nav="nav_0" id="feelMood" data-appbuilder-object="page"
style="">
<div class="select_element form_element" style="width:100%;overflow:hidden" data-appbuilder-object="select">
<label for="moodType">How do you feel?</label>
<select id="moodType">
<option value="happy" selected="">Happy</option>
<option value="sad">Sad</option>
<option value="angry">Angry</option>
<option value="depressed">Depressed</option>
</select>
</div>
<div class="select_element form_element" style="width:100%;overflow:hidden" data-appbuilder-object="select">
<label for="moodSeverity">Severity</label>
<select id="moodSeverity">
<option value="normal" selected="">Normal</option>
<option value="very">Very</option>
<option value="extreme">Extreme</option>
</select>
</div>
<div class="toggle_element form_element" style="overflow:hidden" data-appbuilder-object="toggle">
<label>I am in danger of hurting myself</label>
<input type="checkbox" id="moodHelp" class="toggle">
<label for="moodHelp" data-on="Yes" data-off="No"><span></span>
</label>
</div>
<a class="button" href="#main" style="" data-appbuilder-object="button" data-transition="slide"
id="submitMood">Done</a>
</div>
<div class="panel" title="Medication List" data-nav="nav_0" id="medList" data-appbuilder-object="page"
style="">
<div class="text_item" data-appbuilder-object="text" style="">
<ul>
<li>Aspirin</li>
Dose: 2 Pills Every: 4-6 Hours
<p>
</p>
<li>Tylenol</li>
Dose: 2 Pills Every: 4-6 Hours
<p>
</p>
<li>Penicillin</li>Dose: 1 Pill Every: Morning</ul>
</div>
</div>
<div class="panel" title="Dosage Schedule" data-nav="nav_0" id="doseSchedule" data-appbuilder-object="page"
style="">
<div class="text_item" data-appbuilder-object="text">
<ul>
<li>Aspirin</li>
Dose: 2 Pills Due: 0-2 Hours
<p>
</p>
<li>Tylenol</li>
Dose: 2 Pills Due: 2-4 Hours
<p>
</p>
<li>Penicillin</li>Dose: 1 Pill Due: 8:00AM
</ul>
</div>
</div>
<div class="panel" title="Combined History" data-nav="nav_0" id="combinedHistory"
data-appbuilder-object="page" style="">
<div class="text_item" data-appbuilder-object="text">
<ul>
<li>
<h3>2013-12-04<.h3></h3>
</li>
<h4>14:08</h4>
<li>Aspirin
</li>
Dose: 2 Pills
<p>
</p>
<li>
<h4>19:17</h4>
</li>
<li>Tylenol</li>
Dose: 2 Pills
<p>
</p>
<li>
<h3>2013-12-05</h3>
</li>
<li>
<h4>08:33</h4>
</li>
<li>Penicillin</li>Dose: 1 Pill <b>Skipped</b>
<h4>1:17PM</h4>
<li>Record Pain</li>
Location: Head
<br>Severity: Severe Pain
</ul>
</div>
</div>
<div class="panel" title="Dosage Reminder" data-nav="nav_0" id="doseRemind" data-appbuilder-object="page"
style="">
<div class="text_item" data-appbuilder-object="text">
<h2>Medication Dose Due</h2>
<h3>Penicillin</h3>
Dose: 1 Pill Due: 8:00AM
</div><a class="button" href="#main" style="" data-appbuilder-object="button"
data-transition="slide" id="remindTake">Taken</a><a class="button"
href="#main" style="" data-appbuilder-object="button" data-transition="slide"
id="remindSkip">Skip Dose</a><a class="button" href="#main" style=""
data-appbuilder-object="button" data-transition="slide" id="remindSnooze">Snooze 30m</a>
</div>
</div>
<div id="navbar"> <a href="#main" class="icon home">Home</a><a href="#settings" class="icon settings">Settings</a>
<a href="#doseRemind" class="icon question">Help</a>
</div>
<header id="header_0" data-appbuilder-object="header">
<a id="backButton" href="#" class="button back" style="visibility: visible; ">Back</a>
<h1 id="pageTitle" class="">test</h1>
</header>
<nav id="nav_0" data-appbuilder-object="nav">
<h1>Side Menu</h1>
</nav>
<header id="header_1" data-appbuilder-object="header"> <a id="backButton" href="#" class="button">Back</a>
<h1 class="">Custom Title</h1>
</header>
</div>
</html>