forked from nightscout/cgm-remote-monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
600 lines (578 loc) · 34.8 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
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, maximum-scale=1, initial-scale=1, user-scalable=0" />
<meta name="apple-mobile-web-app-capable" content="yes">
<title>Nightscout</title>
<link rel="apple-touch-icon" sizes="57x57" href="/images/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/images/apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/images/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/images/apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/images/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/images/apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/images/apple-touch-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/images/apple-touch-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-180x180.png">
<link rel="icon" type="image/png" href="/images/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="/images/android-chrome-192x192.png" sizes="192x192">
<link rel="icon" type="image/png" href="/images/favicon-96x96.png" sizes="96x96">
<link rel="icon" type="image/png" href="/images/favicon-16x16.png" sizes="16x16">
<link rel="manifest" href="/manifest.json">
<link rel="shortcut icon" href="/images/favicon.ico">
<meta name="msapplication-TileColor" content="#00a300">
<meta name="msapplication-TileImage" content="/images/mstile-144x144.png">
<meta name="msapplication-config" content="/browserconfig.xml">
<meta name="theme-color" content="#333333">
<link rel="stylesheet" type="text/css" href="/css/drawer.css?v=0.9.2" />
<link rel="stylesheet" type="text/css" href="/css/main.css?v=0.9.2" />
<link rel="stylesheet" type="text/css" href="/css/dropdown.css" />
<link rel="stylesheet" type="text/css" href="/css/sgv.css?v=0.9.2" />
<link rel="stylesheet" type="text/css" href="/bower_components/tipsy-jmalonzo/src/stylesheets/tipsy.css" />
<link rel="stylesheet" type="text/css" href="/bower_components/jquery-ui/themes/ui-darkness/jquery-ui.min.css">
</head>
<body>
<div class="container loading" id="container">
<div id="toolbar">
<div id="buttonbar">
<a id="editbutton" class="tip" original-title="Edit Mode" href="#" style="display:none;"><i class="icon-edit"></i></a>
<a id="testAlarms" class="tip" original-title="Alarm Test / Smartphone Enable" href="#"><i class="icon-volume"></i></a>
<a id="drawerToggle" class="tip" original-title="Settings" href="#"><i class="icon-menu"></i></a>
<a id="lockedToggle" class="tip" original-title="Token needed for Care Portal" href="#" style="display:none;"><i class="icon-lock"></i></a>
<a id="treatmentDrawerToggle" class="tip" original-title="Care Portal" href="#" style="display:none;"><i class="icon-plus"></i></a>
<a id="boluscalcDrawerToggle" class="tip" original-title="Bolus Wizard" href="#" style="display:none;"><i class="icon-calc"></i></a>
</div>
<div class="customTitle">Nightscout</div>
</div>
<div id="notification">
<a href="#"><span></span><i class="icon-cancel-circled"></i></a>
</div>
<div class="primary">
<div class="bgStatus current">
<div class="bgButton">
<span class="pill rawbg hidden"><em></em><label></label></span>
<span class="currentBG">---</span>
<span class="pill direction"></span>
</div>
<ul class="dropdown-menu" id="silenceBtn"></ul>
<div class="majorPills"></div>
<div class="minorPills"></div>
</div>
<div class="status">
<div class="statusBox">
<div id="currentTime">---</div>
<div class="statusPills">
</div>
</div>
</div>
<ul class="focus-range">
<li data-hours="3" class="translate">3HR</li>
<li data-hours="6" class="translate">6HR</li>
<li data-hours="12" class="translate">12HR</li>
<li data-hours="24" class="translate">24HR</li>
<li>...</li>
</ul>
<ul class="dropdown-menu" id="viewMenu"></ul>
</div>
<div class="row-fluid section1">
<div id="chartContainer"></div>
</div>
</div>
<div id="drawer">
<form id="settings-form">
<ul class="navigation">
<li><a href="/report/index.html" target="reports" class="translate">Reports</a></li>
<li class="profilecontrol"><a id="editprofilelink" href="/profile/index.html" target="profileeditor" class="translate">Profile Editor</a></li>
<li class="foodcontrol"><a id="editfoodlink" href="/food/index.html" target="foodeditor" class="translate">Food Editor</a></li>
<li><a id="admintoolslink" href="/admin/index.html" target="admintools" class="translate">Admin Tools</a></li>
</ul>
<fieldset class="browserSettings">
<legend class="translate icon-cog">Settings</legend>
<dl class="radio">
<dt class="translate">Units</dt>
<dd><input type="radio" name="units-browser" id="mgdl-browser" value="mg/dl" checked /><label for="mgdl-browser">mg/dL</label></dd>
<dd><input type="radio" name="units-browser" id="mmol-browser" value="mmol" /><label for="mmol-browser">mmol/L</label></dd>
</dl>
<dl class="radio">
<dt class="translate">Date format</dt>
<dd><input type="radio" name="timeformat-browser" id="12-browser" value="12" checked /><label for="12-browser" class="translate">12 hours</label></dd>
<dd><input type="radio" name="timeformat-browser" id="24-browser" value="24" /><label for="24-browser" class="translate">24 hours</label></dd>
</dl>
<dl>
<dt class="translate">Language</dt>
<dd>
<select id="language">
</select>
</dd>
</dl>
<dl>
<dt class="translate">Scale</dt>
<dd>
<select id="scaleY">
<option class="translate" value="log">Logarithmic</option>
<option class="translate" value="linear">Linear</option>
<option class="translate" value="log-dynamic">Logarithmic (Dynamic)</option>
</select>
</dd>
</dl>
<dl>
<dt class="translate">Render Basal</dt>
<dd>
<select id="basalrender">
<option class="translate" value="none">None</option>
<option class="translate" value="default">Default</option>
<option class="translate" value="icicle">Icicle</option>
</select>
</dd>
</dl>
<dl class="toggle">
<dt><span class="translate">Enable Alarms</span> <a class="tip" original-title="When enabled an alarm may sound."><i class="icon-help-circled"></i></a></dt>
<dd><input type="checkbox" id="alarm-urgenthigh-browser" /><label for="alarm-urgenthigh-browser" class="translate">Urgent High Alarm</label></dd>
<dd><input type="checkbox" id="alarm-high-browser" /><label for="alarm-high-browser" class="translate">High Alarm</label></dd>
<dd><input type="checkbox" id="alarm-low-browser" /><label for="alarm-low-browser" class="translate">Low Alarm</label></dd>
<dd><input type="checkbox" id="alarm-urgentlow-browser" /><label for="alarm-urgentlow-browser" class="translate">Urgent Low Alarm</label></dd>
<dd>
<input type="checkbox" id="alarm-timeagowarn-browser"/><label for="alarm-timeagowarn-browser" class="translate">Stale Data: Warn</label>
<input type="text" id="alarm-timeagowarnmins-browser" class="timeago-mins" value="15"/>
<span class="translate">mins</span>
</dd>
<dd>
<input type="checkbox" id="alarm-timeagourgent-browser"/><label for="alarm-timeagourgent-browser" class="translate">Stale Data: Urgent</label>
<input type="text" id="alarm-timeagourgentmins-browser" class="timeago-mins" value="30"/>
<span class="translate">mins</span>
</dd>
</dl>
<dl class="toggle">
<dt><span class="translate">Night Mode</span> <a class="tip" original-title="When enabled the page will be dimmed from 10pm - 6am."><i class="icon-help-circled"></i></a></dt>
<dd><input type="checkbox" name="nightmode-browser" id="nightmode-browser" /><label for="nightmode-browser" class="translate">Enable</label></dd>
</dl>
<dl class="toggle">
<dt><span class="translate">Edit Mode</span> <a class="tip" original-title="When enabled icon to start edit mode is visible"><i class="icon-help-circled"></i></a></dt>
<dd><input type="checkbox" name="editmode-browser" id="editmode-browser" /><label for="editmode-browser" class="translate">Enable</label></dd>
</dl>
<dl id="show-rawbg-option" class="toggle">
<dt><span class="translate">Show Raw BG Data</span> <a class="tip" original-title="When enabled small white dots will be disaplyed for raw BG data"><i class="icon-help-circled"></i></a></dt>
<dd><input type="radio" name="show-rawbg" id="show-rawbg-never" value="never"/><label for="show-rawbg-never" class="translate">Never</label></dd>
<dd><input type="radio" name="show-rawbg" id="show-rawbg-always" value="always"/><label for="show-rawbg-always" class="translate">Always</label></dd>
<dd><input type="radio" name="show-rawbg" id="show-rawbg-noise" value="noise"/><label for="show-rawbg-noise" class="translate">When there is noise</label></dd>
</dl>
<dl>
<dt class="translate">Custom Title</dt>
<dd><input type="text" id="customTitle" value="Nightscout" /></dd>
</dl>
<dl class="radio">
<dt class="translate">Theme</dt>
<dd><input type="radio" name="theme-browser" id="theme-default-browser" value="default" checked /><label for="theme-default-browser" class="translate">Default</label></dd>
<dd><input type="radio" name="theme-browser" id="theme-colors-browser" value="colors" /><label for="theme-colors-browser" class="translate">Colors</label></dd>
<dd><input type="radio" name="theme-browser" id="theme-colorblindfriendly-browser" value="colorblindfriendly" /><label for="theme-colorblindfriendly-browser" class="translate">Colorblind-friendly colors</label></dd>
</dl>
<dl id="show-plugins" class="toggle">
<dt class="translate">Show Plugins</dt>
</dl>
</fieldset>
<div class="actions">
<button type="button" id="save" class="translate">Save</button>
<a id="useDefaults" class="pull-right translate" href="">Reset, and use defaults</a>
</div>
<hr>
<span id="authentication_placeholder"></span>
<fieldset id="about">
<legend class="translate">About</legend>
<div class="appName"></div>
<div>version <span class="version"></span></div>
<div>head <span class="head"></span></div>
<p>
<div>License: <a href="http://www.gnu.org/licenses/agpl.html" target="_blank">AGPL</a></div>
<div>Copyright © 2015 <a href="http://www.nightscoutfoundation.org/" target="_blank">The Nightscout Foundation</a></div>
</p>
<div class="links">
<a href="https://github.com/nightscout/cgm-remote-monitor/releases" target="_blank">Release Notes</a><br />
<a href="http://github.com/nightscout/cgm-remote-monitor" target="_blank">Open Source</a><br />
<a href="http://www.nightscout.info" target="_blank">Nightscout Info</a><br />
<a href="https://www.facebook.com/groups/cgminthecloud/" target="_blank">CGM in the Cloud</a><br />
</div>
</fieldset>
</form>
</div>
<div id="treatmentDrawer">
<form id="treatment-form">
<fieldset class="treatmentData">
<legend class="translate">Log a Treatment</legend>
<label for="eventType" class="left-column">
<span class="translate">Event Type</span>
<select id="eventType"></select>
</label>
<label id="reasonLabel" for="reason" class="left-column">
<span class="translate">Reason</span>
<select id="reason"></select>
</label>
<fieldset id="targets">
<legend class="translate">Targets</legend>
<label for="targetTop" class="left-column">
<span class="translate">Top</span>
<input type="number" step="any" id="targetTop" />
</label>
<label for="targetBottom" class="left-column">
<span class="translate">Bottom</span>
<input type="number" step="any" id="targetBottom" />
</label>
</fieldset>
<fieldset id="bg">
<legend class="translate">Glucose Reading</legend>
<input type="number" step="any" id="glucoseValue" />
<label><br><span class="translate">Measurement Method</span><br></label>
<label for="meter">
<input type="radio" name="glucoseType" id="meter" value="Finger"/>
<span class="translate">Meter</span>
</label>
<label for="sensor">
<input type="radio" name="glucoseType" id="sensor" value="Sensor"/>
<span class="translate">Sensor<br></span>
</label>
</fieldset>
<label id="carbsGivenLabel" for="carbsGiven" class="left-column short-label">
<span class="translate">Carbs Given</span>
<input type="number" step="any" min="0" id="carbsGiven" placeholder="Amount in grams" class="titletranslate"/>
</label>
<label id="insulinGivenLabel" for="insulinGiven" class="left-column short-label">
<span class="translate">Insulin Given</span>
<input type="number" step="any" min="0" id="insulinGiven" placeholder="Amount in units" class="titletranslate"/>
</label>
<label id="insulinSplitLabel" for="insulinSplit" class="left-column short-label">
<span class="translate">Split</span>
<input type="number" step="5" min="0" max="100" style="width:50px" id="insulinSplitNow" placeholder="% now" class="titletranslate"/>%
:
<input type="number" step="5" min="0" max="100" style="width:50px" id="insulinSplitExt" placeholder="% extended" class="titletranslate"/>%
</label>
<label id="durationLabel" for="duration" class="left-column short-label">
<span class="translate">Duration</span>
<input id="duration" placeholder="Duration in minutes" class="titletranslate"/>
</label>
<label id="percentLabel" for="percent" class="left-column short-label">
<span class="translate">Percent</span>
<input type="number" step="10" id="percent" placeholder="Basal change in %" class="titletranslate"/>
</label>
<label id="profileLabel" for="profile" class="left-column short-label">
<span class="translate">Profile</span>
<select id="profile"></select>
</label>
<label id="absoluteLabel" for="absolute" class="left-column short-label">
<span class="translate">Basal value</span>
<input type="number" step="0.025" id="absolute" placeholder="Absolute basal value" class="titletranslate"/>
</label>
<label id="preBolusLabel" for="preBolus" class="left-column short-label extra-space">
<span class="translate">Carb Time</span>
<select id="preBolus">
<option class="translate" value="-60">60 minutes earlier</option>
<option class="translate" value="-45">45 minutes earlier</option>
<option class="translate" value="-30">30 minutes earlier</option>
<option class="translate" value="-20">20 minutes earlier</option>
<option class="translate" value="-15">15 minutes earlier</option>
<option class="translate" value="0">Time in minutes</option>
<option class="translate" value="15">15 minutes later</option>
<option class="translate" value="20">20 minutes later</option>
<option class="translate" value="30">30 minutes later</option>
<option class="translate" value="45">45 minutes later</option>
<option class="translate" value="60">60 minutes later</option>
</select>
</label>
<!-- Label and textarea -->
<label for="notes" class="extra-space translate">Additional Notes, Comments</label>
<textarea id="notes"></textarea><br>
<label for="enteredBy" class="left-column extra-space">
<span class="translate">Entered By</span>
<input type="text" id="enteredBy" value="" />
</label>
<div id="eventTime">
<span class="translate">Event Time</span>
<label for="nowtime">
<input type="radio" name="nowOrOther" id="nowtime" value="now" checked="checked"/>
<span class="translate">Now</span>
</label>
<label for="othertime">
<input type="radio" name="nowOrOther" id="othertime" value="other"/>
<span class="translate">Other</span>
</label>
<input type="date" id="eventDateValue" name="eventDateValue" value="" class="eventinput eventdate"/>
<input type="time" id="eventTimeValue" name="eventTimeValue" value="" class="eventinput eventtime"/>
</div>
<button type="button" class="translate">Submit Form</button>
</fieldset>
</form>
</div>
<div id="boluscalcDrawer">
<form id="boluscalc-form">
<fieldset class="boluscalcData">
<legend>
<span class="translate">Bolus Wizard</span>
</legend>
<table>
<tr>
<td>
</td>
<td>
<span class="translate">BG</span>:
<span style="float:right;">
<input type="text" size="3" id="bc_bg" class="insulincalculationpart">
</span>
</td>
<td>
</td>
</tr>
<tr>
<td>
<input title="Use BG correction in calculation" type="checkbox" id="bc_usebg" class="insulincalculationpart titletranslate" checked>
</td>
<td style="width:170px">
<input type="radio" name="bc_bginput" id="bc_bgfromsensor" value="Sensor" checked>
<i title="BG from CGM (autoupdated)" class="icon-chart-line titletranslate" style="margin-right:0;margin-left:-0.6em;color:lightgreen"></i>
<input type="radio" name="bc_bginput" id="bc_bgfrommeter" value="Finger">
<i title="BG from meter" class="icon-tint titletranslate" style="margin-right:0;margin-left:-0.6em;color:red"></i>
<input type="radio" name="bc_bginput" id="bc_bgmanual" value="Manual">
<i title="Manual BG" class="icon-sort-numeric titletranslate" style="margin-right:0;margin-left:-0.6em;color:blue"></i>
</td>
<td id="bc_inzulinbgtd" class="insulincalculation">
<span style="float:right" id="bc_inzulinbg">0.00</span>
</td>
</tr>
<tr class="foodinput" style="display:none">
<td colspan="3" id="bc_gitd">
<span class="translate">GI</span>:
<select style="float:right;" id="bc_gi">
<option class="translate" value="1">Low</option>
<option class="translate" value="2" selected>Medium/Unknown</option>
<option class="translate" value="3">High</option>
</select>
<span style="float:right;" id="bc_gicalculated" style="display:none"></span>
</td>
</tr>
<tr class="foodinput foodcontrol">
<td colspan="3">
<span class="translate">Quickpick</span>:
<br>
<select style="float:right;" id="bc_quickpick"></select>
<br>
<span id="bc_addfoodarea">
<span class="translate">or</span>
<a href="#" style="float:right;" id="bc_addfromdatabase">
<span class="translate">Add from database</span>
</a>
</span>
<div id="bc_food">
</div>
</td>
</tr>
<tr>
<td>
<input title="Use carbs correction in calculation" type="checkbox" id="bc_usecarbs" class="insulincalculationpart titletranslate" checked>
</td>
<td>
<span class="translate">Carbs</span>:
<span style="float:right;">
<input type="text" size="3" id="bc_carbs" value="0" class="insulincalculationpart"> g
</span>
</td>
<td id="bc_inzulincarbstd" class="insulincalculation">
<span style="float:right" id="bc_inzulincarbs"></span>
</td>
</tr>
<tr class="cobcontrol">
<td>
<input title="Use COB correction in calculation" type="checkbox" id="bc_usecob" class="insulincalculationpart titletranslate">
</td>
<td>
<span class="translate">COB</span>:
<span style="float:right">
<span id="bc_cob"></span> g
</span>
</td>
<td class="insulincalculation">
<span style="float:right" id="bc_cobu"></span>
</td>
</tr>
<tr>
<td>
<input title="Use IOB in calculation" type="checkbox" id="bc_useiob" class="insulincalculationpart" checked>
</td>
<td>
<span class="translate">IOB</span>:
</td>
<td class="insulincalculation">
<span style="float:right" id="bc_iob">0.00</span>
</td>
</tr>
<tr>
<td>
</td>
<td>
<span class="translate">Other correction</span>:
</td>
<td class="insulincalculation">
<select style="float:right" id="bc_othercorrection" class="insulincalculationpart">
<option value="-1">-1.00</option>
<option value="-0.95">-0.95</option>
<option value="-0.90">-0.90</option>
<option value="-0.85">-0.85</option>
<option value="-0.80">-0.80</option>
<option value="-0.75">-0.75</option>
<option value="-0.70">-0.70</option>
<option value="-0.65">-0.65</option>
<option value="-0.60">-0.60</option>
<option value="-0.55">-0.55</option>
<option value="-0.50">-0.50</option>
<option value="-0.45">-0.45</option>
<option value="-0.40">-0.40</option>
<option value="-0.35">-0.35</option>
<option value="-0.30">-0.30</option>
<option value="-0.25">-0.25</option>
<option value="-0.20">-0.20</option>
<option value="-0.15">-0.15</option>
<option value="-0.10">-0.10</option>
<option value="-0.05">-0.05</option>
<option value="0" selected>0.00</option>
<option value="0.05">0.05</option>
<option value="0.10">0.10</option>
<option value="0.15">0.15</option>
<option value="0.20">0.20</option>
<option value="0.25">0.25</option>
<option value="0.30">0.30</option>
<option value="0.35">0.35</option>
<option value="0.40">0.40</option>
<option value="0.45">0.45</option>
<option value="0.50">0.50</option>
<option value="0.55">0.55</option>
<option value="0.60">0.60</option>
<option value="0.65">0.65</option>
<option value="0.70">0.70</option>
<option value="0.75">0.75</option>
<option value="0.80">0.80</option>
<option value="0.85">0.85</option>
<option value="0.90">0.90</option>
<option value="0.95">0.95</option>
<option value="1">1.00</option>
</select>
</td>
</tr>
<tr class="border_bottom">
<td>
</td>
<td>
<span class="translate">Rounding</span>:
</td>
<td class="insulincalculation">
<span style="float:right" id="bc_rouding">0.00</span>
</td>
</tr>
<tr id="bc_calculationintarget" class="insulintotalcalculation border_bottom">
<td>
</td>
<td colspan="2">
<span class="translate" style="font-size:1em">Calculation is in target range.</span>
</td>
</tr>
<tr id="bc_insulinneededtr" class="insulintotalcalculation border_bottom">
<td>
<input title="Enter insulin correction in treatment" type="checkbox" id="bc_useinsulin" class="insulincalculationpart titletranslate" checked>
</td>
<td>
<span class="translate">Insulin needed</span>:
</td>
<td>
<span style="float:right" id="bc_insulintotal">0.00</span>
</td>
</tr>
<tr id="bc_carbsneededtr" class="insulintotalcalculation border_bottom titletranslate" title="Carbs needed if Insulin total is negative value">
<td>
</td>
<td>
<span class="translate">Carbs needed</span>:
<span style="float:right" id="bc_carbsneeded"></span>
</td>
<td>
<span style="float:right"id="bc_insulinover"></span>
</td>
</tr>
<tr class="border_bottom">
<td>
</td>
<td>
<span class="translate">Basal rate</span>:
</td>
<td>
<span id="bc_basal" style="float:right"></span>
</td>
</tr>
</table>
<hr>
<label for="bc_preBolus" class="left-column short-label extra-space">
<span class="translate">Carb Time</span>:
<select id="bc_preBolus">
<option class="translate" value="-60">60 minutes earlier</option>
<option class="translate" value="-45">45 minutes earlier</option>
<option class="translate" value="-30">30 minutes earlier</option>
<option class="translate" value="-20">20 minutes earlier</option>
<option class="translate" value="-15">15 minutes earlier</option>
<option class="translate" value="0" selected>Time in minutes</option>
<option class="translate" value="15">15 minutes later</option>
<option class="translate" value="20">20 minutes later</option>
<option class="translate" value="30">30 minutes later</option>
<option class="translate" value="45">45 minutes later</option>
<option class="translate" value="60">60 minutes later</option>
</select>
</label>
<br>
<label id="bc_profileLabel" for="preBolus" class="left-column short-label extra-space">
<span class="translate">Profile</span>:
<select id="bc_profile" class="insulincalculationpart"></select>
</label>
<br>
<!-- Label and textarea -->
<label for="bc_notes" class="extra-space translate">Additional Notes, Comments</label>
<textarea id="bc_notes" style="width:250px"></textarea>
<br>
<label for="bc_enteredBy" class="left-column extra-space">
<span class="translate">Entered By</span>:
</label>
<input type="text" id="bc_enteredBy" value="" />
<div id="bc_eventTime">
<span class="translate">Event Time</span>:
<input type="radio" name="bc_nowOrOther" id="bc_nowtime" value="now" checked="checked"/>
<label for="bc_nowtime">
<span class="translate">Now</span>
</label>
<input type="radio" name="bc_nowOrOther" id="bc_othertime" value="other"/>
<label for="bc_othertime">
<span class="translate">Other</span>
</label>
<input type="date" id="bc_eventDateValue" name="bc_eventTimeValue" value="" class="bc_eventtimeinput"/>
<input type="time" id="bc_eventTimeValue" name="bc_eventTimeValue" value="" class="bc_eventtimeinput"/>
</div>
<div id="bc_retro" class="translate" style="display:none;width:100%;background-color:red;text-align: center;border: 2px solid black;border-radius: 10px;margin-top:10px;">RETRO MODE</div>
</fieldset>
<button type="button" class="translate">Submit Form</button>
</form>
<div id="bc_addfooddialog" style="display:none" title="Add food from your database" class="titletranslate">
<fieldset class="browserSettings">
<legend class="translate">Filter</legend>
<span class="translate">Category</span>: <select id="bc_filter_category"></select>
<span class="translate">Subcategory</span>: <select id="bc_filter_subcategory"></select>
<br>
<span class="translate">Name</span>: <input type="text" id="bc_filter_name"></select>
</fieldset>
<select id="bc_data" style="width:100%;"></select>
<br>
<br>
<span class="translate">Portions</span>: <input type="number" step="0.1" min="0" value="1" size="3" id="bc_addportions">
</div>
</div>
<div class="audio alarms">
<audio src="/audio/alarm.mp3" preload="auto" loop="true" class="alarm mp3" type="audio/mp3"></audio>
<audio src="/audio/alarm2.mp3" preload="auto" loop="true" class="urgent alarm2 mp3" type="audio/mp3"></audio>
</div>
<script src="/public/js/bundle.js?v=0.9.2"></script>
<script src="/socket.io/socket.io.js"></script>
<script src="/bower_components/jQuery-Storage-API/jquery.storageapi.min.js"></script>
<script src="/bower_components/tipsy-jmalonzo/src/javascripts/jquery.tipsy.js"></script>
<script src="/bower_components/jquery-ui/jquery-ui.min.js"></script>
<script src="/js/client.js"></script>
</body>
</html>