-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
425 lines (373 loc) · 15.9 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
<!DOCTYPE html>
<!--[if lt IE 7 ]> <html lang="en" class="ie6"> <![endif]--> <!--[if IE 7 ]> <html lang="en" class="ie7"> <![endif]--> <!--[if IE 8 ]> <html lang="en" class="ie8"> <![endif]--> <!--[if IE 9 ]> <html lang="en" class="ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en"> <!--<![endif]-->
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Accessibility Advisor</title>
<meta name="description" content="A web application for accessibility recommendations used for development.">
<meta name="keywords" content="accessibility, advisor, tool, AEGIS, DCGI, FEE, DCGI">
<meta name="author" content="Jan Bobisud">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- jQuery UI styles -->
<link rel="stylesheet" href="aegis/jquery-ui-min/jquery-ui.min.css" />
<link rel="stylesheet" href="aegis/jquery-ui-min/jquery.ui.menubar.css" />
<!-- jCarousel style -->
<link rel="stylesheet" href="aegis/jcarousel/skins/tango/skin.css" />
<!-- Application style -->
<link rel="stylesheet" href="css/style.css?v=2">
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<!-- App.ApplicationView -->
<script type="text/x-handlebars" data-template-name="application">
<h1>Accessibility Advisor</h1>
{{outlet}}
</script>
<!-- App.SurveyView -->
<script type="text/x-handlebars" data-template-name="survey">
{{#if isLoaded}}
{{view view.tabsView contentBinding="content"}}
{{else}}
Loading tabs...
{{/if}}
</script>
<!-- App.SurveyView.tabsView -->
<script type="text/x-handlebars" data-template-name="tabs">
{{view view.tabsBar contentBinding="content"}}
{{#each tab in content}}
<div {{bindAttr id="tab.tabTarget"}}>
{{#if tab.isGroup}}
{{view view.groupView controllerBinding="tab"}}
{{/if}}
{{#if tab.isSummary}}
{{view view.summaryView}}
{{/if}}
<hr>
{{#if tab.hasPrevious}}
{{view view.previousView label="Previous"}}
{{/if}}
{{#if tab.hasNext}}
{{view view.nextView label="Next" disabledBinding="tab.isNotValid"}}
{{/if}}
</div>
{{/each}}
</script>
<!-- App.SurveyView.tabsView.groupView -->
<script type="text/x-handlebars" data-template-name="group">
{{#each question in questions}}
<h3>{{question.title}}</h3>
<div>
{{view view.questionView controllerBinding="question"}}
</div>
{{/each}}
</script>
<!-- App.SurveyView.tabsView.groupView.questionView -->
<script type="text/x-handlebars" data-template-name="question">
{{#if isRadio}}
{{#each answer in answers}}
<label>
{{view Ember.Radio nameBinding="id" valueBinding="answer.id" checkedBinding="answer.checked" disabledBinding="answer.disabled"}}
{{answer.title}}
</label><br>
{{/each}}
{{/if}}
{{#if isCheckbox}}
{{#each answer in answers}}
<label>
{{view Ember.Checkbox checkedBinding="answer.checked" disabledBinding="answer.disabled"}}
{{answer.title}}
</label><br>
{{/each}}
{{/if}}
{{#if isSelect}}
<label>
{{title}}
{{view Ember.Select
prompt="Select application type"
contentBinding="answers"
valueBinding="view.selectedAnswerId"
optionValuePath="content.id"
optionLabelPath="content.title"}}
</label>
{{/if}}
</script>
<!-- App.SurveyView.tabsView.summaryView -->
<script type="text/x-handlebars" data-template-name="summary">
<div class="summary tree"></div>
<br>
{{view view.goToResultView label="Get Recommendations" disabledBinding="isNotValid"}}
</script>
<!-- App.ResultView -->
<script type="text/x-handlebars" data-template-name="result">
{{#if isLoaded}}
{{view view.tabsView contentBinding="content"}}
{{else}}
<p>Loading result...</p>
{{/if}}
</script>
<!-- App.ResultView.tabsView -->
<script type="text/x-handlebars" data-template-name="resultTabs">
{{view view.tabsBar contentBinding="content"}}
{{#each tab in content}}
<div {{bindAttr id="tab.tabTarget"}}>
{{#if tab.isRecommendations}}
{{view view.recommendationsView contentBinding="tab"}}
{{/if}}
{{#if tab.isPersonas}}
{{view view.personasView contentBinding="tab"}}
{{/if}}
{{#if tab.isTools}}
{{view view.toolsView contentBinding="tab"}}
{{/if}}
<hr>
{{#if tab.hasPrevious}}
{{view view.previousView label="Previous"}}
{{/if}}
{{#if tab.hasNext}}
{{view view.nextView label="Next" disabledBinding="tab.isNotValid"}}
{{/if}}
<hr>
{{view view.goBackView}}
</div>
{{/each}}
</script>
<!-- App.ResultView.tabsView.recommendationsView -->
<script type="text/x-handlebars" data-template-name="recommendations">
{{#each recommendation in tab.content}}
<h3>{{recommendation.title}}</h3>
<div>
{{#if recommendation.isGeneral}}
{{#each item in recommendation.content}}
<h4><a {{bindAttr href="item.url"}} target="_blank">{{item.title}}</a></h4>
<p>{{item.description}}</p>
<hr>
{{/each}}
{{else}}
{{#if recommendation.description}}
<h4>Description</h4>
{{recommendation.description}}
<hr>
{{/if}}
{{#if recommendation.stressDescription}}
<h4>Stress Conditions</h4>
{{recommendation.stressDescription}}
<hr>
{{/if}}
{{#if recommendation.developerToolFamily}}
<h4>Developer Tool Family</h4>
<p>The "{{recommendation.developerToolFamily}}" can help you implement this recommendation.</p>
<hr>
{{/if}}
{{#if recommendation.impairments}}
<h4>Impairments</h4>
{{#collection contentBinding="recommendation.impairments" tagName="ul"}}
{{view.content}}
{{/collection}}
<hr>
{{/if}}
{{#if recommendation.disabilities}}
<h4>Disabilities</h4>
{{#collection contentBinding="recommendation.disabilities" tagName="ul"}}
{{view.content}}
{{/collection}}
<hr>
{{/if}}
{{#if recommendation.noises}}
<h4>Environment Noisiness</h4>
{{#collection contentBinding="recommendation.noises" tagName="ul"}}
{{view.content}}
{{/collection}}
<hr>
{{/if}}
{{#if recommendation.lights}}
<h4>Lighting Conditions</h4>
{{#collection contentBinding="recommendation.lights" tagName="ul"}}
{{view.content}}
{{/collection}}
<hr>
{{/if}}
{{#if recommendation.ages}}
<h4>Age Groups</h4>
{{#collection contentBinding="recommendation.ages" tagName="ul"}}
{{view.content}}
{{/collection}}
<hr>
{{/if}}
{{/if}}
</div>
{{/each}}
</script>
<!-- App.ResultView.tabsView.personasView -->
<script type="text/x-handlebars" data-template-name="personas">
{{#each persona in tab.content}}
<h3>{{persona.fullName}} ({{#if persona.isPrimary}}primary{{else}}secondary{{/if}})</h3>
<div>
<h4>Details</h4>
<dl>
{{#if persona.age}}<dt>Age</dt><dd>{{persona.age}}</dd>{{/if}}
{{#if persona.meritalStatus}}<dt>Merital Status</dt><dd>{{persona.meritalStatus}}</dd>{{/if}}
{{#if persona.living}}<dt>Living</dt><dd>{{persona.living}}</dd>{{/if}}
{{#if persona.children}}<dt>Children</dt><dd>{{persona.children}}</dd>{{/if}}
{{#if persona.location}}<dt>Location</dt><dd>{{persona.location}}</dd>{{/if}}
{{#if persona.education}}<dt>Education</dt><dd>{{persona.education}}</dd>{{/if}}
{{#if persona.job}}<dt>Job</dt><dd>{{persona.job}}</dd>{{/if}}
{{#if persona.impairment}}<dt>Impairment</dt><dd>{{persona.impairment}}</dd>{{/if}}
</dl>
<hr>
{{#if persona.format}}
<h4>Introduction</h4>
<p>{{persona.introduction}}</p>
<hr>
<h4>Technology use</h4>
<p>{{persona.technology}}</p>
<hr>
<h4>Problems</h4>
<p>{{persona.problems}}</p>
<hr>
<h4>Needs and wants</h4>
<p>{{persona.needs}}</p>
<hr>
<h4>Last Month...</h4>
<p>{{persona.month}}</p>
<hr>
{{else}}
<p>{{persona.freeText}}</p>
<hr>
{{/if}}
</div>
{{/each}}
</script>
<!-- App.ResultView.tabsView.toolsView -->
<script type="text/x-handlebars" data-template-name="tools">
{{#each tool in tab.content}}
<h3>{{tool.title}}</h3>
<div>
{{tool.description}}
<hr>
{{#if tool.categories}}
<h4>Categories</h4>
{{#collection contentBinding="tool.categories" tagName="ul"}}
{{view.content}}
{{/collection}}
<hr>
{{/if}}
{{#if tool.developerPlatforms}}
<h4>Developer Platforms</h4>
{{#collection contentBinding="tool.developerPlatforms" tagName="ul"}}
{{view.content}}
{{/collection}}
<hr>
{{/if}}
{{#if tool.userPlatforms}}
<h4>User Platforms</h4>
{{#collection contentBinding="tool.userPlatforms" tagName="ul"}}
{{view.content}}
{{/collection}}
<hr>
{{/if}}
{{#if tool.homePageUrl}}
{{view UI.LinkView urlBinding="tool.homePageUrl" label="Homepage"}}
{{/if}}
{{#if tool.documentationUrl}}
{{view UI.LinkView urlBinding="tool.documentationUrl" label="Documentation"}}
{{/if}}
{{#if tool.tutorialUrl}}
{{view UI.LinkView urlBinding="tool.tutorialUrl" label="Tutorial"}}
{{/if}}
</div>
{{/each}}
</script>
<!-- The missing protocol means that it will match the current protocol, either http or https. If running locally, we use the local jQuery. -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/libs/jquery-1.7.2.min.js"><\/script>')</script>
<script src="js/libs/handlebars-1.0.0.beta.6.js"></script>
<script src="js/libs/ember-1.0.0-pre.2.js"></script>
<script src="js/libs/ember-data-latest.js"></script>
<!-- jQuery UI -->
<script src="aegis/jquery-ui-min/jquery-ui.min.js"></script>
<!-- JCarousel -->
<script src="aegis/jcarousel/lib/jquery.jcarousel.js"></script>
<!-- JSTree plugin files -->
<script src="aegis/jstree-a11y/jsTree.v.1.0rc2/lib/jquery.cookie.js"></script>
<script src="aegis/jstree-a11y/jsTree.v.1.0rc2/lib/jquery.hotkeys.js"></script>
<script src="aegis/jstree-a11y/jsTree.v.1.0rc2/jquery.jstree.js"></script>
<!-- Temporary datepicker files -->
<script src="aegis/jquery-ui-min/external/globalize.js"></script>
<script src="aegis/jquery-ui-min/datepicker-rewrite/localization.js"></script>
<script src="aegis/jquery-ui-min/datepicker-rewrite/date.js"></script>
<script src="aegis/jquery-ui-min/datepicker-rewrite/picker.js"></script>
<script src="aegis/jquery-ui-min/datepicker-rewrite/jquery.tmpl.js"></script>
<!-- jQuery UI widgets for Ember.js -->
<script src="js/ui.js"></script>
<!--
jQuery UI Datepicker Templates
Reason for separating templates: Refreshing the entire datepicker during interaction confuses screen readers, specfically because
the grid heading is marked up as a live region and will often not update if it's destroyed and recreated instead of just having its
text change. Additionally, interacting with the prev and next links would cause loss of focus issues because the links being interacted
with will disappear while focused. With this approach there are 3 templates: the outer template (#ui-datepicker-tmpl), The grid template
(#ui-datepicker-grid-tmpl) and the title template (#ui-datepicker-title-tmpl). This gets rid of the accessibility problems mentioned, and
also allows developers to modify parts of the datepicker without having to duplicate the entire template.
-->
<script id="ui-datepicker-grid-tmpl" type="text/x-jquery-tmpl">
<table class="ui-datepicker-calendar" role="grid" aria-readonly="true" aria-labelledby="${instance.id}-month-lbl" tabindex="0" aria-activedescendant="${instance.id}-${instance.focusedDay}">
<thead role="presentation">
<tr role="row">
{{each(index, day) date.weekdays()}}
<th class="" role="columnheader" abbr="${day.fullname}" aria-label="${day.fullname}"><span title="${day.fullname}">${day.shortname}</span></th>
{{/each}}
</tr>
</thead>
<tbody role="presentation">
{{each(weekIndex, week) date.days()}}
<tr role="row">
{{each(dayIndex, day) week.days}}
<td {{if day.render}}id="${instance.id}-${day.date}"{{/if}} role="gridcell" aria-selected="{{if day.current}}true{{else}}false{{/if}}" {{if !day.selectable}}aria-disabled="true"{{/if}}>
{{if day.render}}
{{if day.selectable}}
<a class="{{if day.date == instance.focusedDay}}ui-state-focus {{/if}}ui-state-default{{if day.current}} ui-state-active{{/if}}{{if day.today}} ui-state-highlight{{/if}} ${day.extraClasses}" href="#" tabindex="-1" data-timestamp=${day.timestamp}>
${day.date}
{{if day.today}} <span class="ui-helper-hidden-accessible">, ${labels.currentText}</span>{{/if}}
</a>
{{/if}}
{{if !day.selectable}}
<span class="{{if day.current}} ui-state-active{{/if}}{{if day.today}} ui-state-highlight{{/if}} ${day.extraClasses}">
${day.date}
</span>
{{/if}}
{{/if}}
</td>
{{/each}}
</tr>
{{/each}}
</tbody>
</table>
</script>
<script id="ui-datepicker-title-tmpl" type="text/x-jquery-tmpl">
<span class="ui-datepicker-month">${date.monthname()}</span> <span class="ui-datepicker-year">${date.year()}</span>
</script>
<script id="ui-datepicker-tmpl" type="text/x-jquery-tmpl">
<div class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all" role="region" aria-labelledby="${instance.id}-title">
<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix ui-corner-all">
<a href="#" class="ui-datepicker-prev ui-corner-all" title="${labels.prevText}"><span class="ui-icon ui-icon-circle-triangle-w">${labels.prevText}</span></a>
<a href="#" class="ui-datepicker-next ui-corner-all" title="${labels.nextText}"><span class="ui-icon ui-icon-circle-triangle-e">${labels.nextText}</span></a>
<div role="header" id="${instance.id}-title">
<div id="${instance.id}-month-lbl" class="ui-datepicker-title">
{{tmpl({date : date}) "#ui-datepicker-title-tmpl"}}
</div>
<span class="ui-helper-hidden-accessible">, ${labels.datePickerRole}</span>
</div>
</div>
{{tmpl({date : date, labels : labels, instance : instance}) "#ui-datepicker-grid-tmpl"}}
<div class="ui-datepicker-buttonpane ui-widget-content">
<button class="ui-datepicker-current">${labels.currentText}</button>
<button class="ui-datepicker-close">${labels.closeText}</button>
</div>
</div>
</script>
<!-- Ember.js application -->
<script src="js/app.js"></script>
</body>
</html>