-
Notifications
You must be signed in to change notification settings - Fork 24
/
index.html
325 lines (249 loc) · 16.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
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/css/bootstrap-combined.min.css" rel="stylesheet">
<style>
.level2 {
margin-left: 20px;
}
.level3 {
margin-left: 40px;
}
</style>
</head>
<body>
<!--[if lt IE 7]>
<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
<![endif]-->
<div class="container">
<h1>jQuery Interdependencies demo</h1>
<p>
See <a href="https://github.com/miohtama/jquery-interdependencies"><b>jQuery Interdepedencies</b> Github project page</a> for more information.
</p>
<div id="demo-content">
<p>These fields make more sense when you have major in neurology</p>
<div id="two-attempts-test" class="alert">
This pop-up becomes visible when number of attempts is 2.
</div>
<div id="three-attempts-test" class="alert alert-error">
This serious pop-up becomes visible when number of attempts is 3.
</div>
<div class="datagridwidget-block-mechanicalThrombectomyDevice select-widget choice-field datagridwidget-block">
<div class="label-wrapper">
<label for="mechanicalThrombectomyDevice">
<span>Choice 1</span>
</label>
</div>
<select size="1" class="select-widget choice-field" name="mechanicalThrombectomyDevice" id="mechanicalThrombectomyDevice">
<option value="--NOVALUE--" id="mechanicalThrombectomyDevice-novalue">no value</option>
<option value="merci" id="mechanicalThrombectomyDevice-0">Some value</option>
<option value="notApplicable" id="mechanicalThrombectomyDevice-10">Not applicable</option>
</select>
<input type="hidden" value="1" name="mechanicalThrombectomyDevice-empty-marker" originalvalue="1"></div>
<div class="datagridwidget-block-dac select-widget choice-field datagridwidget-block">
<div class="label-wrapper">
<label for="dac">
<span>Choice 2</span>
</label>
</div>
<select size="1" class="select-widget choice-field" name="dac" id="dac">
<option value="--NOVALUE--" id="dac-novalue">no value</option>
<option value="yes" id="dac-0">Yes</option>
<option value="no" id="dac-1">No</option>
<option value="unknown" id="dac-2">Unknown</option>
</select>
<input type="hidden" value="1" name="dac-empty-marker" originalvalue="1"></div>
<div class="datagridwidget-block-numberOfAttempts text-widget int-field datagridwidget-block">
<div class="label-wrapper">
<label for="numberOfAttempts">
<span>Number test</span>
</label>
</div>
<input type="text" value="" class="text-widget int-field" name="numberOfAttempts" id="numberOfAttempts">
<span class="help-inline">Try setting value to 2 or 3</span>
</div>
<div class="datagridwidget-block-balloonGuide select-widget choice-field datagridwidget-block">
<div class="label-wrapper">
<label for="balloonGuide">
<span>Balloon guide</span>
</label>
</div>
<select size="1" class="select-widget choice-field" name="balloonGuide" id="balloonGuide">
<option value="--NOVALUE--" id="balloonGuide-novalue">no value</option>
<option value="yes" id="balloonGuide-0">Yes</option>
<option value="no" id="balloonGuide-1">No</option>
<option value="unknown" id="balloonGuide-2">Unknown</option>
</select>
<input type="hidden" value="1" name="balloonGuide-empty-marker" originalvalue="1"></div>
<div class="datagridwidget-block-aspirationInGuideDuringThrombectomy select-widget choice-field datagridwidget-block">
<div class="label-wrapper">
<label for="aspirationInGuideDuringThrombectomy">
<span>Choice 3</span>
</label>
</div>
<select size="1" class="select-widget choice-field" name="aspirationInGuideDuringThrombectomy" id="aspirationInGuideDuringThrombectomy">
<option value="--NOVALUE--" id="aspirationInGuideDuringThrombectomy-novalue">no value</option>
<option value="yes" id="aspirationInGuideDuringThrombectomy-0">Yes</option>
<option value="no" id="aspirationInGuideDuringThrombectomy-1">No</option>
<option value="unknown" id="aspirationInGuideDuringThrombectomy-2">Unknown</option>
</select>
<input type="hidden" value="1" name="aspirationInGuideDuringThrombectomy-empty-marker" originalvalue="1"></div>
<div class="datagridwidget-block-delayedReocclusion select-widget choice-field datagridwidget-block">
<div class="label-wrapper">
<label for="delayedReocclusion">
<span>Choice 4</span>
</label>
</div>
<select size="1" class="select-widget choice-field" name="delayedReocclusion" id="delayedReocclusion">
<option value="--NOVALUE--" id="delayedReocclusion-novalue">no value</option>
<option value="yes" id="delayedReocclusion-0">Yes</option>
<option value="no" id="delayedReocclusion-1">No</option>
<option value="unknown" id="delayedReocclusion-2">Unknown</option>
</select>
<span class="help-text">
Help text example
</span>
<input type="hidden" value="1" name="delayedReocclusion-empty-marker" originalvalue="1">
</div>
<div class="datagridwidget-block-incubationOfDevice select-widget choice-field datagridwidget-block">
<div class="label-wrapper">
<label for="incubationOfDevice">
<span>Choice 5</span>
</label>
</div>
<select size="1" class="select-widget choice-field" name="incubationOfDevice" id="incubationOfDevice">
<option value="--NOVALUE--" id="incubationOfDevice-novalue">no value</option>
<option value="yes" id="incubationOfDevice-0">Yes</option>
<option value="no" id="incubationOfDevice-1">No</option>
<option value="unknown" id="incubationOfDevice-2">Unknown</option>
</select>
<input type="hidden" value="1" name="incubationOfDevice-empty-marker" originalvalue="1"></div>
<div class="datagridwidget-block-angioplasty select-widget choice-field datagridwidget-block">
<div class="label-wrapper">
<label for="angioplasty">
<span>Choice 6</span>
</label>
</div>
<select size="1" class="select-widget choice-field" name="angioplasty" id="angioplasty">
<option value="--NOVALUE--" id="angioplasty-novalue">no value</option>
<option value="yes" id="angioplasty-0">Yes</option>
<option value="no" id="angioplasty-1">No</option>
<option value="unknown" id="angioplasty-2">Unknown</option>
</select>
<input type="hidden" value="1" name="angioplasty-empty-marker" originalvalue="1"></div>
<div class="datagridwidget-block-angioplastyExtraCranial single-checkbox-widget bool-field datagridwidget-block level2">
<div class="label-wrapper">
<label for="angioplastyExtraCranial">
<span></span>
</label>
</div>
<span class="option">
<label for="angioplastyExtraCranial-0" class="checkbox">
<input type="checkbox" value="selected" class="single-checkbox-widget bool-field" name="angioplastyExtraCranial" id="angioplastyExtraCranial-0">
<span>Subchoice 1</span>
</label>
</span>
<input type="hidden" value="1" name="angioplastyExtraCranial-empty-marker" originalvalue="1"></div>
<div class="datagridwidget-block-angioplastyIntraCranial single-checkbox-widget bool-field datagridwidget-block level2">
<div class="label-wrapper">
<label for="angioplastyIntraCranial">
<span></span>
</label>
</div>
<span class="option">
<label for="angioplastyIntraCranial-0">
<input type="checkbox" value="selected" class="single-checkbox-widget bool-field" name="angioplastyIntraCranial" id="angioplastyIntraCranial-0">
<span>Subchoice 2</span>
</label>
</span>
<input type="hidden" value="1" name="angioplastyIntraCranial-empty-marker" originalvalue="1"></div>
<div class="datagridwidget-block-adjunctiveStenting select-widget choice-field datagridwidget-block">
<div class="label-wrapper">
<label for="adjunctiveStenting">
<span>Choice 7</span>
</label>
</div>
<select size="1" class="select-widget choice-field" name="adjunctiveStenting" id="adjunctiveStenting">
<option value="--NOVALUE--" id="adjunctiveStenting-novalue">no value</option>
<option value="yes" id="adjunctiveStenting-0">Yes</option>
<option value="no" id="adjunctiveStenting-1">No</option>
<option value="unknown" id="adjunctiveStenting-2">Unknown</option>
</select>
<span class="help-inline">Play with values to see 3rd level of decision tree</span>
<input type="hidden" value="1" name="adjunctiveStenting-empty-marker" originalvalue="1"></div>
<div class="datagridwidget-block-adjunctiveStentingExtraCranial single-checkbox-widget bool-field datagridwidget-block level2">
<div class="label-wrapper">
<label for="adjunctiveStentingExtraCranial">
<span></span>
</label>
</div>
<span class="option">
<label for="adjunctiveStentingExtraCranial-0">
<input type="checkbox" value="selected" class="single-checkbox-widget bool-field" name="adjunctiveStentingExtraCranial" id="adjunctiveStentingExtraCranial">
<span>Subchoice 3</span>
</label>
</span>
<input type="hidden" value="1" name="adjunctiveStentingExtraCranial-empty-marker" originalvalue="1"></div>
<div class="datagridwidget-block-adjunctiveStentingExtraCranialType text-widget textline-field datagridwidget-block level3">
<div class="label-wrapper">
<label for="adjunctiveStentingExtraCranialType">
<span>Clarification text</span>
</label>
</div>
<input type="text" value="" class="text-widget textline-field" name="adjunctiveStentingExtraCranialType" id="adjunctiveStentingExtraCranialType"></div>
<div class="datagridwidget-block-adjunctiveStentingIntraCranial single-checkbox-widget bool-field datagridwidget-block level2">
<div class="label-wrapper">
<label for="adjunctiveStentingIntraCranial">
<span></span>
</label>
</div>
<span class="option">
<label for="adjunctiveStentingIntraCranial-0">
<input type="checkbox" value="selected" class="single-checkbox-widget bool-field" name="adjunctiveStentingIntraCranial" id="adjunctiveStentingIntraCranial">
<span>Subchoice 4</span>
</label>
</span>
<input type="hidden" value="1" name="adjunctiveStentingIntraCranial-empty-marker" originalvalue="1"></div>
<div class="datagridwidget-block-adjunctiveStentingIntraCranialType text-widget textline-field datagridwidget-block level3">
<div class="label-wrapper">
<label for="adjunctiveStentingIntraCranialType">
<span>Clarification text</span>
</label>
</div>
<input type="text" value="" class="text-widget textline-field" name="adjunctiveStentingIntraCranialType" id="adjunctiveStentingIntraCranialType"></div>
<div class="datagridwidget-block-ticiScoreAfterThisDevice text-widget int-field datagridwidget-block">
<div class="label-wrapper">
<label for="ticiScoreAfterThisDevice">
<span>Outside field 1</span>
</label>
</div>
<input type="text" value="" class="text-widget int-field" name="ticiScoreAfterThisDevice" id="ticiScoreAfterThisDevice"></div>
<div class="datagridwidget-block-wasSuccessful select-widget choice-field datagridwidget-block">
<div class="label-wrapper">
<label for="wasSuccessful">
<span>Outside field 2</span>
</label>
</div>
<select size="1" class="select-widget choice-field" name="wasSuccessful" id="wasSuccessful">
<option value="--NOVALUE--" id="wasSuccessful-novalue">no value</option>
<option value="yes" id="wasSuccessful-0">Yes</option>
<option value="no" id="wasSuccessful-1">No</option>
<option value="uncertain" id="wasSuccessful-2">Unknown</option>
</select>
<input type="hidden" value="1" name="wasSuccessful-empty-marker" originalvalue="1"></div>
</div>
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/js/bootstrap.min.js"></script>
<script src="deps.js"></script>
<script src="demo.js"></script>
</body>
</html>