-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
469 lines (422 loc) · 22.6 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
<head>
<link rel="stylesheet" href="css.css" />
<meta name="viewport" content="width=device-width" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico?">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
</head>
<body>
<div class="mainDiv" id="mainDiv">
<div class="split right" id="right">
<div class="pacemakerGraphic" id="pacemakerGraphic">
<div class="wholeBox">
<div class="topButtons">
<img class='topButtonImgs allButtons' title="Emergency pace" src="assets/DOObutton-red-whitetext.svg" onclick="DOObuttonClick(this)" draggable="false">
<img class='topButtonImgs allButtons' title="Power" src="assets/powerButton-white-blackback.svg" onclick="animateButton(this); paceButtonClick()" draggable="false">
</div>
<div class ="topHalf">
<div class = "topScreen">
<div class = "topScreenHide" id = "topScreenHide">
<div class = "activityLightsDiv">
<img class = "activityLightsImgs" id="aPaceLight" src="assets/paceLightOff.svg">
A
<img class = "activityLightsImgs" id="aSenseLight" src="assets/senseLightOff.svg">
<div class="spacer"></div>
<img class = "activityLightsImgs" id="vPaceLight" src="assets/paceLightOff.svg">
V
<img class = "activityLightsImgs" id="vSenseLight" src="assets/senseLightOff.svg">
</div>
<div class = "topScreenRows">
<div class = "topScreenRow">
<div class = "meter" id = "rateMeterDiv">
<!--<img class = "meterSVG" id="rateMeterSVG" src="assets/rateMeter-nolabel.svg">-->
<div class="meterLabels">
<div class="rateMinLabel" id="rateMinLabel">30</div>
<div class="rateMaxLabel" id="rateMaxLabel">200</div>
</div>
</div>
<div class = "rightSide">
<div class = "rightLabel">
RATE
</div>
<div class = "numMeter" id="pacingBoxRate">
80
</div>
</div>
</div>
<div class = "topScreenRow" id = "aOutputRow">
<div class = "meter" id="aOutputMeterDiv" >
<!-- <img class = "meterSVG" id="aOutputMeterSVG" src="assets/rateMeter-nolabel.svg"> -->
<div class="meterLabels">
<div class="aOutputMinLabel" id="aOutputMinLabel">0</div>
<div class="aOutputMaxLabel" id="aOutputMinLabel">20</div>
</div>
</div>
<div class = "rightSide">
<div class = "rightSide">
<div class = "rightLabel">
A OUTPUT
</div>
<div class = "numMeter" id="pacingBoxAOutput">
5
</div>
</div>
</div>
</div>
<div class = "topScreenRow" id = "vOutputRow">
<div class = "meter" id='vOutputMeterDiv'>
<!--<img class = "meterSVG" id="vOutputMeterSVG" src="assets/rateMeter-nolabel.svg">-->
<div class="meterLabels">
<div class="vOutputMinLabel" id="vOutputMinLabel">0</div>
<div class="vOutputMaxLabel" id="vOutputMinLabel">25</div>
</div>
</div>
<div class = "rightSide">
<div class = "rightLabel">
V OUTPUT
</div>
<div class = "numMeter" id="pacingBoxVOutput">
10
</div>
</div>
</div>
</div>
<div class = "modeIndicatorRow">
<div id="pacingBoxMode">DDD</div>
<div class="batteryDiv">
<img class= 'lockIndicatorImg' src="assets/battery5.svg">
</div>
<div id='lockIndicator' class="lockIndicatorDiv">
<img class="lockIndicatorImg" src="assets/lockIndicator.svg">
</div>
</div>
</div>
</div>
<div class = "topRightSide">
<div class = "topKnobsBlank">
</div>
<div class = "topKnobs">
<div class = 'knobClass' id="rateDialDiv">
<img draggable="false" class="knobImg" id="rateDialImg" src="assets/knob-full-gradient.svg">
</div>
<div class = 'knobClass' id="aOutputDialDiv">
<img draggable="false" class="knobImg" id="aOutputDialImg"src="assets/knob-full-gradient.svg">
</div>
<div class = 'knobClass' id="vOutputDialDiv">
<img draggable="false" class="knobImg" id="vOutputDialImg" src="assets/knob-full-gradient.svg">
</div>
</div>
<div class = "lockButton">
<img class = "rightSideButtonImgs allButtons" title="Lock pacer" src="assets/lockButton-white-blackback.svg" onclick="animateButton(this); lockButtonClick()" draggable="false">
</div>
</div>
</div>
<div class="screenSpacer">
</div>
<div class ="bottomHalf">
<div class = "bottomScreen">
<div id = "bottomScreenHide" class = "bottomScreenHide">
<div class = "mainScreen" id = "mainScreen">
<div class = "mainContent" id="mainContent">
<div class = "barRow" id = "AsenseRow" data-rownum = 0>
<div class = "labelRow">
<div class = "rowName">A Sensitivity</div>
<div class = "value" id = "boxAsenseValue">0.5 mV</div>
</div>
<div class = "bar"><meter class = "meterBar" id = "aSenseMeter" value="30" min="0" max="100">
</meter>
</div>
</div>
<div class = "barRow" id = "VsenseRow" data-rownum = 1>
<div class = "labelRow">
<div class = "rowName">V Sensitivity</div>
<div class = "value" id = "boxVsenseValue">2.0 mV</div>
</div>
<div class = "bar"><meter class = "meterBar" id = "vSenseMeter" value="20" min="0" max="100">
</meter></div>
</div>
<div class = "barRow" id = "AVIrow" data-rownum = 2>
<div class = "labelRow">
<div class = "rowName">A-V Interval</div>
<div class = "value" id = "boxAVInterval" >170 ms</div>
</div>
<div class = "bar"><meter class = "meterBar" id = "AVMeter" value="30" min="0" max="100">
</meter></div>
</div>
<div class = "barRow" id = "URLrow" data-rownum = 3>
<div class = "labelRow">
<div class = "rowName">Upper Rate</div>
<div class = "value" id = "boxURL" >110 ppm</div>
</div>
<div class = "bar"><meter class = "meterBar" id = "URLMeter" value="30" min="0" max="100">
</meter></div>
</div>
<div class = "barRow" id = "PVARProw" data-rownum = 4>
<div class = "labelRow">
<div class = "rowName">PVARP</div>
<div class = "value" id = "boxPVARPValue" >300 ms</div>
</div>
<div class = "bar"><meter class = "meterBar" id = "PVARPMeter" value="30" min ="0" max="100">
</meter></div>
</div>
<div class = "barRow" id = "aTracking" data-rownum = 5>
<div class = "labelRow">
<div class = "rowName">A. Tracking</div>
<div class = "value">On</div>
</div>
</div>
<div class = "barRow" id = "settings" data-rownum = 6>
<div class = "labelRow">
<div class = "rowName">Settings</div>
<div class = "value" id = "settingsValue">Automatic</div>
</div>
</div>
</div>
<div class = "bottomRowsSection">
<div class = "bottomRows" id = "RAP" data-rownum = 7>Rapid Atrial Pacing</div>
<div class = "bottomRows" id = "modeSelection" data-rownum = 8>Mode Selection</div>
</div>
</div>
<div class = "modeScreen" id = "modeScreen" style="display: none;">
<div class = "modeTitle">Mode Selection</div>
<div class = "modeContent" id="modeContent">
<div class = "row" id ="radio" data-rownum = 0>
<div class = "modeRadio"><img src="assets/radio-circle-marked.svg"></div>
<div class = "modeName">DDD</div>
</div>
<div class = "row" id ="radio" data-rownum = 1>
<div class = "modeRadio"><img src="assets/radio-circle.svg"></div>
<div class = "modeName">DDI</div>
</div>
<div class = "row" id ="radio" data-rownum = 2>
<div class = "modeRadio"><img src="assets/radio-circle.svg"></div>
<div class = "modeName">DOO</div>
</div>
<div class = "row" id ="radio" data-rownum = 3>
<div class = "modeRadio"><img src="assets/radio-circle.svg"></div>
<div class = "modeName">AAI</div>
</div>
<div class = "row" id ="radio" data-rownum = 4>
<div class = "modeRadio"><img src="assets/radio-circle.svg"></div>
<div class = "modeName">AOO</div>
</div>
<div class = "row" id ="radio" data-rownum = 5>
<div class = "modeRadio"><img src="assets/radio-circle.svg"></div>
<div class = "modeName">VVI</div>
</div>
<div class = "row" id ="radio" data-rownum = 6>
<div class = "modeRadio"><img src="assets/radio-circle.svg"></div>
<div class = "modeName">VOO</div>
</div>
<div class = "row" id ="radio" data-rownum = 7>
<div class = "modeRadio"><img src="assets/radio-circle.svg"></div>
<div class = "modeName">OOO</div>
</div>
</div>
<div class = "bottomRowsSection">
<div class = "bottomRows" id = "backOption" data-rownum = 8>Back</div>
</div>
</div>
<div class = "lockScreenWrap" id = "lockScreen" style="display: none;">
<div class = 'lockScreenInner'>
LOCKED
<br>
Press
<br>
<img class = 'lockScreenIcon' src="assets/lockButton-white-blackback.svg" draggable="false">
<br>
to unlock.
</div>
</div>
<div class = "lockScreenWrap" id = "pauseScreen" style="display: none;">
<div class = 'pauseScreenInner'>
<p>PAUSE</p>
<p>Caution: Pacing is suspended</p>
</div>
</div>
<div class = "RAPscreen" id = "RAPscreen" style="display: none;">
<div class = "barRow" id = "RAPrateRow" data-rownum = 0>
<div class = "labelRow">
<div class = "rowName">RAP Rate</div>
<div class = "value" id = "RAPrateValue">250 ppm</div>
</div>
<div class = "bar"><meter class = "meterBar" id = "RAPrateMeter" value="30" min="0" max="100"></meter>
</div>
</div>
<p id="RAPtext">
<br>
Hold <img style="height: 0.8em;" src="assets/arrowEnter.svg"> to
<br>
DELIVER
<br>
Rapid Atrial Pacing
</p>
<div class = "bottomRowsSection" id = "bottomRowsSectionRAP">
<div class = "bottomRows" id = "backOption" data-rownum = 1>Back</div>
</div>
</div>
</div>
</div>
<div class = "bottomKnobs">
<img class='rightSideButtonImgs allButtons' id = "enterButton" src="assets/enterButton-white-black.svg" draggable="false">
<img class='rightSideButtonImgs allButtons' src="assets/uparrow-white-black.svg" onclick="animateButton(this); upArrowClick()" draggable="false">
<img class='rightSideButtonImgs allButtons' src="assets/downarrow-white-black.svg" onclick="animateButton(this); downArrowClick()" draggable="false">
<div class="knobClass" id = "bottomKnobDiv" draggable="false">
<img draggable="false" class="knobImg" id = "bottomKnobImg"src="assets/knob-full-gradient.svg">
</div>
<div id = 'pauseButtonDiv'>
<img class='rightSideButtonImgs allButtons' id = "pauseButton" title="Pause pacing" src="assets/pauseButton-white-black.svg" draggable="false">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="split left">
<div class="textBoxes">
<p></p>
<p></p>
<label for="pacingMode">Pacing mode:</label>
<select name="pacingMode" id="pacingMode" onchange=pacingModeBoxChange()>
<option value="listDDD">DDD</option>
<option value="listDDI">DDI</option>
<option value="listDOO">DOO</option>
<option value="listAAI">AAI</option>
<option value="listAOO">AOO</option>
<option value="listVVI">VVI</option>
<option value="listVOO">VOO</option>
<option value="listVOO">OOO</option>
</select>
<button id="paceButton" onclick="paceButtonClick()">Start Pacing</button>
<input hidden=true type="checkbox" id="capturing" value="capturing">
<label hidden=true for="capturing"> capture override</label><br>
<label for="pacingRate">pacing rate:</label>
<input id="pacingRate" value=60 size="2" type="number" min="0" max="1000">
<label for="AVInterval">pacer AV interval:</label>
<input id="AVInterval" value=170 size="2" type="number" min="20" max="300" onchange="onParameterChange()">
<label for="AVIntervalHRAdjustBox">auto AV interval (rate controlled)</label>
<input id="AVIntervalHRAdjustBox" type="checkbox" checked=true>
<br>
<label for="aOutputBox">atrial output:</label>
<input id="aOutputBox" size="1" value=10 type="number" min="0" max="1000" onChange="onOutputChange('atrium')">mA
<label for="aSensitivityBox">sensitivity:</label><input id="aSensitivityBox" type="number" value=4 size="2"
min="0.4" max="10" step="0.2" onChange="onParameterChange()">mV
<br>
<label for="vOutputBox">ventricle output:</label>
<input id="vOutputBox" size="1" value=10 type="number" min="0" max="1000"
onChange="onOutputChange('ventricle')">mA <label for="vSensitivityBox">sensitivity:</label><input
id="vSensitivityBox" type="number" value=4 size="2" min="0.8" max="20" step="0.2"
onChange="onParameterChange()">mV
<div id="URLdiv">
<label for="URLbox">upper rate limit (DDD):</label>
<input id="URLbox" value=150 size="2" type="number" min="0" max="1000">
</div>
<!-- <input type="checkbox" id="CHBbox" value="CHBbox" onchange="clickCHB()">
<label for="CHBbox">complete heart block</label><br> -->
</div>
<label for="feedbackList">Feedback:</label>
<select id="feedbackList" title="Select the level of feedback you want">
<option value="noFeedback">No feedback</option>
<option value="lowFeedback" selected>Low feedback</option>
<option value="medFeedback">Medium feedback</option>
<option value="highFeedback">High feedback</option>
</select>
<div class="rhythmStuff">
<label for="rhythmList">Rhythm:</label>
<select id="rhythmList" title="Select the patient's intrinsic rhythm">
<option value="NSR">Sinus rhythm</option>
<option value="flatline">Flatline</option>
<option value="junctional">Junctional escape</option>
<option value="ventEscape">Ventricular escape</option>
<option value="aFib">Atrial fibrillation</option>
<option value="aFlutter">Atrial flutter</option>
<option value="2ndtypeI">Second-degree, Type I (Mobitz I, Wenckebach)</option>
<option value="2ndtypeII">Second-degree, Type II (Mobitz II)</option>
<option value="highGradeBlock">Second-degree, high-grade</option>
<option value="completeBlock">Complete heart block</option>
<option value="ectopy">Ectopy</option>
<option value="geminies">Geminies</option>
<!-- <option value="synthetic">Synthetic</option> -->
</select>
<br>
<div id="nativeRate">
<label for="avgRateBox">native rate:</label> <input type="number" id="avgRateBox" title="Select the patient's intrinsic rate" value=60 size="2" max="1000"
min="0">
<br>
</div>
<div id="nativePR">
<label for="PRbox">native PR interval</label> <input type="number" id="PRbox" title="Select the patient's native PR interval" value=150 size="2" max="1000"
min="0">
<br>
</div>
<div id="flutterStuff" hidden=true>
<label for="flutterAtrialRate">flutter, atrial rate:</label> <input id="flutterAtrialRate" value=300 size="2"
type="number" min="0" max="1000">
<label for="flutterConductionRatio">conduction ratio (A:V) :</label> <input id="flutterConductionRatio" value=4
size="2" type="number" min="0" max="20">
<input type="checkbox" id="flutterVariableAV" value="flutterVariableAV">
<label for="flutterVariableAV"> variable AV conduction</label><br>
</div>
<div id="wenckStuff" hidden=true>
<label for="wenckeDegreeBox">degree of block:</label> <input id="wenckeDegreeBox" value=3 size="2" type="number"
min="2" max="10">
<label id='AVblockLabel'>4:3</label>
</div>
<div id="intermAVBlockStuff" hidden=true>
<label for="blockFreqBox">frequency of block: </label> <input id="blockFreqBox" value=.20 size="2" type="number"
min="0" max="1" step="0.1">
<label id='blockedRatioLabel'>20% blocked</label>
</div>
<div id="CHBstuff" hidden=true>
<label for="ventRateBox">ventricular rate:</label> <input id="ventRateBox" value=40 size="2" type="number" min="0"
max="1000">
<label for="atrialRateBox">atrial rate:</label> <input id="atrialRateBox" value=90 size="2" type="number" min="0"
max="1000">
</div>
<div id="geminiStuff" hidden=true>
<label for="geminiRatioBox">ratio normal QRS to PVC </label> <input id="geminiRatioBox" value=1 size="2"
type="number" min="1" max="10" step="1">
</div>
<div id="ectopyStuff" hidden=true>
<input type="checkbox" id="PVCbox" value="PVCbox" onclick="">
<label for="PVCbox"> PVCs</label>
<input type="checkbox" id="PACbox" value="PACbox" onclick="">
<label for="PACbox"> PACs</label>
<input type="checkbox" id="PJCbox" value="PJCbox" onclick="">
<label for="PJCbox"> PJCs</label>
<br>
<label for="ectopyFrequencyBox">ectopy frequency: </label> <input id="ectopyFrequencyBox" value=.20 size="2"
type="number" min="0" max="1" step=".1">
</div>
</div>
<div class="checkboxStuff">
<div>
<input type="checkbox" id="noise" value="noise" title="Check to simulate realistic telemetry noise" onclick="noiseToggle()">
<label for="noise"> noise</label>
</div>
<div class="scrambleStuff">
<input type="button" id="scrambleThresholds" value="SCRAMBLE THRESHOLDS" title="Click this button to scramble thresholds -- you'll need to reoptimize pacer settings after this is pressed" onclick="scrambleThresholds()">
</div>
</div>
<div id="feedbackBox"></div>
<div id="canvasesdiv" style="position:relative; width:100%; height:200px">
<canvas class="leftSideCanvas" id="tele" style="position:absolute; left:0px; top:0px;" width=100%
height=200px></canvas>
<canvas class="leftSideCanvas" id="HRLayer"
style="position:absolute; left:0px; top:0px; background-color: transparent;" width=100% height="200"></canvas>
<canvas class="leftSideCanvas" id="caliperCanvas"
style="position:absolute; left:0px; top:0px; background-color: transparent; z-index: 4;" width=100%
height="200"></canvas>
</div>
</div>
</div>
<script type="text/javascript" src="data.js"></script>
<script type="text/javascript" src="pure-knob-master/pureknob.js"></script>
<script type="text/javascript" src="javascript.js"></script>
</body>