-
Notifications
You must be signed in to change notification settings - Fork 2
/
reflineTraining.html
260 lines (218 loc) · 10.2 KB
/
reflineTraining.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
<!-- DOCTYPE HTML -->
<html>
<head>
<title>Reference Line Training and Evaluation</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<link rel="stylesheet" href="animate.css">
<link rel="stylesheet" href="referencete.css">
<link rel="stylesheet" href="coverpage.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<script type="text/javascript"
src="http://code.jquery.com/jquery-latest.js">
</script>
</head>
<body>
<!--<div id="ucsf-banner-nav" class="no-logo">
<div class="top-header-container row">
<ul class="menu">
<li class="first"><a href="http://www.ucsf.edu">University of California San Francisco</a></li>
<li><a href="http://www.ucsfhealth.org/">UCSF Medical Center</a></li>
<li><a href="http://www.ucsf.edu/search" title="">Search UCSF</a></li>
<li><a href="http://www.ucsf.edu/about">About UCSF</a></li>
</ul>
</div>
</div>-->
<div id="interface" class ="unselectable">
<canvas id="scoutScan" width="512" height="512">
Your browser does not support the HTML5 canvas tag.</canvas>
<div id = "belowcontainer">
<div id="sideNums">
<p class="boldMargin">7</p>
<p class ="boldMargin">5</p>
<p class ="boldMargin">3</p>
<p class ="boldMargin">1</p>
<p class="bold">0</p>
</div>
<div id="split">
<div id="timer"></div>
</div>
<div id="preview"></div>
<canvas id="gradient" width="21" height="383"></canvas>
</div>
<div id = "hello" style="top: 0px; right: 760px;" width = "200" height = "600">
<img src="img/reflineheader.png" id = "resizeHeader"/>
<p id="demo2" style="display:none;"></p>
<p id="demo3" style="display:none;"></p>
<p id ="mode"></p>
<!-- RADIUS TIBIA BUTTONS -->
<button id = "rButton" type="button" class="btn btn-info small-btn" onclick ="chooseBones(1)">Radius</button>
<button id = "tButton" type="button" class="btn btn-info small-btn" onclick ="chooseBones(0)">Tibia</button>
<!--<p>
Random Sets: <input type="checkbox" id="checkRandom" onchange = 'updateSetDropDown()'/>
</p> -->
<div id="holdLL">
<div id="laterality" class="radio">
Laterality
<br><label><input type="radio" name="lat" id="left" onchange = 'isLeft(1)'>Left</label></br>
<label><input type="radio" name="lat" id="right" onchange = 'isLeft(0)'>Right</label>
</div>
<div id="landmark" class="radio">
Landmark
<br><label><input type="radio" name="land" id="visible" onchange = 'isLand(1)'>Visible</label></br>
<label><input type="radio" name="land" id="notvisible" onchange = 'isLand(0)'>Not Visible</label>
</div>
<div id="moreStuff" class="radio">
More
<br><label><input type="radio" name="mixedr" id="mixed" onchange = 'isMixed(1)'>Mixed</label></br>
<label><input type="radio" name="mixedr" id="randomImgs" onchange = "isMixed(0)">Random</label>
</div>
</div>
<div id="dropSetSelect" style="display:none;">
<div class="dropdown">
<button id = "dropSetButton" class="btn btn-info dropdown-toggle large-btn" type="button" id="menu1" data-toggle="dropdown">Select a Set
<span class="caret"></span></button>
<ul class="dropdown-menu" role="menu" aria-labelledby="menu1">
<li class="dropdown-header">Left Landmark Visible</li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#" onclick = "drawImgSelected(1)">1</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#" onclick = "drawImgSelected(2)">2</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#" onclick = "drawImgSelected(3)">3</a></li>
<li class="dropdown-header">Right Landmark Visible</li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#" onclick = "drawImgSelected(4)">4</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#" onclick = "drawImgSelected(5)">5</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#" onclick = "drawImgSelected(6)">6</a></li>
<li class="dropdown-header">Left Landmark Not Visible</li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#" onclick = "drawImgSelected(7)">7</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#" onclick = "drawImgSelected(8)">8</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#" onclick = "drawImgSelected(9)">9</a></li>
<li class="dropdown-header">Right Landmark Not Visible</li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#" onclick = "drawImgSelected(10)">10</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#" onclick = "drawImgSelected(11)">11</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#" onclick = "drawImgSelected(12)">12</a></li>
<li class="dropdown-header">All Cases</li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#" onclick = "drawImgSelected(13)">13</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#" onclick = "drawImgSelected(14)">14</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#" onclick = "drawImgSelected(15)">15</a></li>
<li role="presentation" class="divider"></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#" onclick = "drawImgSelected('random')" >Random</a></li>
</ul>
</div>
</div>
<form style="display:none;">
<p id = "setSelector"> Select a Set:
<select id="dropSet" onchange='drawImg()'>
<option value="dummy" selected="selected"> </option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="random">Random</option>
</select>
</p>
</form>
<input type = "button"
id = "getLine"
class="btn btn-info large-btn"
value="Set Reference Line"
onclick="startLine()"
width="20px">
</input>
<input type = "button"
id = "confirmLine"
class="btn btn-info small-btn"
value="Confirm"
onclick="checkPos()">
</input>
<input type = "button"
id = "nextImg"
class="btn btn-info small-btn invisible"
value="Next"
onclick="nextImage()">
</input>
<!--<img src ="RadiusTibiaImages/C0006657_radius.jpg" /> -->
<p id = "demo"></p>
<p id = "hi"></p>
<!-- <p id = 'here'>Hello World!</p> -->
<div class="progresso invisible">
<div class="progress progress-striped active">
<div id = "bar" class="progress-bar progress-bar-info" style="min-width: 2em; width:0%;">0/8</div>
</div>
</div>
<canvas id="trafficLight" width="340" height="120" style="display:none;"></canvas>
<div id = "trafficAlerts" style="margin: 10px 0px 10px 0px;">
<div id = "goodLine" class="alert alert-success" role="alert" style="display:none;">
<strong>Good!</strong> </div>
<div id = "okLine" class="alert alert-info" role="alert" style="display:none;"><strong>Ok! </strong></div>
<div id = "badLine" class="alert alert-danger" role="alert" style="display:none;">
<strong>Out of Range! </strong></div>
</div>
<p id = "traffic" style="display:none;"></p>
</div>
</div>
<div id="preWindow"> <!--this is the lightbox that appears
in front :) -->
<h1 class="animated fadeInDown">Example</h1>
<h2>
Select An Option
</h2>
<p align="center">
<form id="chooseTE">
<input type="radio" name="mode" id="training" value = "1" />Training
<input type="radio" name="mode" id="evaluation" value = "0"/>Evaluation
</form>
<form id="not usable as of now">
<br>Not in Use currently</br>
<input type="radio" name="mode" id="pediatric" value = "1" />Pediatric
<input type="radio" name="mode" id="notPediatric" value = "0"/>Not Pediatric
</form>
<a id="close-preWindow" href="#">Proceed to Reference Line</a>
<!-- makes link panel and specifies it as target to go
into function -->
</p>
</div><!-- /panel -->
<!-- <div id="lightbox2"></div> /lightbox, the gray background that
comes with the box-->
<!--<div id="lightbox-panel"> this is the lightbox that appears
in front :) -->
<div class="panel panel-info" id="lightbox-panel">
<div class="panel-heading">
<h3 class="panel-title">Feedback</h3>
</div>
<div class="panel-body">
<div id="feedbackHolder">
<canvas id="lbCanvas" width="512" height="512">
Your browser does not support the HTML5 canvas tag.</canvas>
</div>
<div id = "okWrapper">
<div class="exact" id="feedBackText1">HELLO</div>
<div class="ok" id="feedBackText2">HELLO</div>
<div class="outOfRange" id="feedBackText3">HELLO</div>
</div>
<div id = "belowText">
<p id="aboveBelow"></p>
<p align="center">
<a id="close-panel" class="btn btn-info" href="#">Close this window</a>
<!-- makes link panel and specifies it as target to go
into function -->
</p>
</div>
</div>
</div><!-- /panel -->
<div id="lightbox" style="display:none;"></div> <!-- the grey background -->
<script src="radiusjSON.js"></script>
<script src="tibiajSON.js"></script>
<script type="text/javascript" src="MoveLineTraining.js"></script>
</body>
</html>