-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpacemakerBox.html
224 lines (194 loc) · 10.5 KB
/
pacemakerBox.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
<head>
<script type="text/javascript" src="data.js"></script>
<link rel="stylesheet" href="css.css" />
<meta name="viewport" content="width=device-width" />
</head>
<body>
<div class="split left">
<div hidden="true" style="text-align: right;width:100%">fps: <span id="demoTEXT">0</span>
<p></p>
i: <span id="demoTEXT2">0</span>
</div>
<!--avg data points processed per second: --><span hidden=true id="demoTEXT3">0</span>
<label for="PRbox">native PR interval</label> <input type="number" id="PRbox" value=150 size ="2" max="1000" min="0" >
<label for="avgRateBox">native rate:</label> <input type="number" id="avgRateBox" value=60 size ="2" max="1000" min="0">
<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="listAAI">AAI</option>
<option value="listVVI">VVI</option>
<option value="listAOO">AOO</option>
<option value="listVOO">VOO</option>
<option value="listDOO">DOO</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="0" max ="1000">
<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" value=4 size ="2" onChange="onSensitivityChange()">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" value=4 size ="2" onChange="onSensitivityChange()">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> -->
<label for="rhythmList">Rhythm:</label>
<select id="rhythmList">
<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="intermAVBlock">Second-degree, Type II (Mobitz II, intermittent)</option>
<option value="highDegreeBlock">Second-degree, Type II (high grade, fixed ratios)</option>
<option value="completeBlock">Complete heart block</option>
<option value="geminies">Geminies</option>
<!-- <option value="synthetic">Synthetic</option> -->
</select>
<br>
<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">
<!-- <label id='blockedRatioLabel'>20% blocked</label> -->
</div>
<input type="checkbox" id="noise" value="noise" onclick="noiseToggle()">
<label for="noise"> noise</label>
<!--
<div id="buttons" class="container">
<button class="buttonsStyle" onclick="clearRhythms()">clear rhythms</button>
<button class="buttonsStyle" onclick="drawPWave()">P wave</button>
<button class="buttonsStyle" onclick="drawQRST()">QRS</button>
<button class="buttonsStyle" onclick="NSRhythm()">NSR</button>
<button class="buttonsStyle" onclick="showCHB()">CHB</button>
<button class="buttonsStyle" onclick="ECGsyn()">Synthetic</button>
</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>
</div>
</div>
<div class="split right">
<img id="pacemakerImg" src="assets/pacemaker.svg" hidden="true">
<div id="pacemakerDiv" style="position:relative; width:100%; height: 50%">
<canvas class ="rightSideCanvas" id="pacemakerCanvas"></canvas>
</div>
<div class="pacemakerGraphic">
<div class="wholeBox">
<div class="topButtons">
<img src="/assets/DOObutton-red-whitetext.svg">
<img src="/assets/powerButton-white-blackback.svg">
</div>
<div class ="topHalf">
<div class = "topScreen">
<div class = "activityLights">
<img src="/assets/indicatorLights.svg">
</div>
<div class = "topScreenRows">
<div class = "topScreenRow">
<div class = "meter"><img src="/assets/rateMeter.svg"></div>
<div class = "rightSide">
<div class = "rightLabel">
RATE
</div>
<div class = "numMeter">
<div id="pacingBoxRate">80</div>
</div>
</div>
</div>
<div class = "topScreenRow">
<div class = "meter"><img src="/assets/rateMeter.svg"></div>
<div class = "rightSide">
<div class = "rightLabel">
V OUTPUT
</div>
<div class = "numMeter">
10
</div>
</div>
</div>
<div class = "topScreenRow">
<div class = "meter"><img src="/assets/rateMeter.svg"></div>
<div class = "rightSide">
<div class = "rightSide">
<div class = "rightLabel">
A OUTPUT
</div>
<div class = "numMeter">
5
</div>
</div>
</div>
</div>
</div>
<div class = "modeIndicatorRow">
DDD
<img src="/assets/battery3.svg">
<img src="assets/lockIndicator.svg">
</div>
</div>
<div class = "topRightSide">
<div class = "topKnobsBlank">
</div>
<div class = "topKnobs">
<img src="/assets/knob-full-gradient.svg">
<img src="/assets/knob-full-gradient.svg">
<img src="/assets/knob-full-gradient.svg">
</div>
<div class = "lockButton">
<img src="/assets/lockButton-white-blackback.svg">
</div>
</div>
</div>
<div class="screenSpacer">
</div>
<div class ="bottomHalf">
<div class = "bottomScreen">
BOTTOM SCREEN
</div>
<div class = "bottomKnobs">
<img src="/assets/enterButton-white-black.svg">
<img src="/assets/uparrow-white-black.svg">
<img src="/assets/downarrow-white-black.svg">
<img src="/assets/knob-full-gradient.svg">
<img src="/assets/pauseButton-white-black.svg">
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="javascriptForWork.js"></script>
</body>