-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·323 lines (309 loc) · 12.8 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Quail</title>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css">
<link href='http://fonts.googleapis.com/css?family=Roboto+Slab:400,700,300,100' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="/css/style.css" />
</head>
<body>
<script type="text/x-handlebars">
<nav class="navbar navbar-default navbar-quail" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">quail</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li>{{#link-to 'accessibilityTests'}}Accessibility tests{{/link-to}}</li>
<li>{{#link-to 'guidelines'}}Guidelines{{/link-to}}</li>
<li><a href="http://quail.readthedocs.org" target="_blank">Documentation <span class="sr-only">Opens new window</span></a></li>
<li>{{#link-to 'examples'}}Examples{{/link-to}}</li>
</ul>
</div>
</nav>
<div class="container" role="main" aria-live="polite">
{{outlet}}
</div>
</script>
<script type="text/x-handlebars" id="index">
<div class="row">
<div class="col-md-6">
<h1 class="quail-front">quail</h1>
<p class="lead big-lead">
Accessibility testing in the browser and on the server.
</p>
<p><strong><a href="https://medium.com/p/c1a3a275fe1a">Read the announcement about the future of Quail</a>.</strong></p>
<p><strong><a href="https://medium.com/web-accessibility/quail-automated-accessibility-testing-framework-second-milestone-report-b5d8df4452e">Update on the status of Quail</a>.</strong></p>
<p class="download">
<a href="http://github.com/kevee/quail" class="btn btn-info btn-lg">
Visit us on GitHub
</a>
<a href="https://github.com/kevee/quail/releases" class="btn btn-success btn-lg">
Download QUAIL
</a>
</p>
<p><strong>Use Drupal?</strong> Check out the <a href="http://drupal.org/project/accessibility">Accessibility module</a>, or watch and read the <a href="https://archive.org/details/BakeAccessibilityIntoYourProject">2013 BADCamp presentation</a> on using quail in your site.
</p>
</div>
<div class="col-md-6 hidden-sm hidden-xs">
<img class="logo" alt="" src="/img/quail.png">
</div>
</div>
<div class="row extra-space">
<div class="col-md-6">
<p class="lead">
<abbr title="Quail Accessibility Information Library">QUAIL</abbr> is a jQuery plugin for checking content against accessibility guidelines. It provides a flexible way to test for certain problems (say, images missing an alt text) and a collection of over <strong>200</strong> tests to get you started. Defining your own tests is easy, and you can pick-and-choose tests to focus on the needs of your own app.
</p>
<p>QUAIL has just made a big move from a humble PHP library to a lightweight and powerful client-side accessibility checker. You can <a href="http://code.google.com/p/quail-lib">still find the 1.0 version of QUAIL</a>, or <strong><a href="http://github.com/kevee/quail">check out the future of QUAIL</a></strong>.
</p>
<a name="documentation"></a>
<h2>Get project announcements</h2>
<div id="mc_embed_signup">
<form action="http://kevee.us3.list-manage.com/subscribe/post?u=9eed24c6f4f4c06dbb3fa55ab&id=8d2e570c7e" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<div class="mc-field-group form-group">
<label for="mce-EMAIL">Email Address (require)</label>
<input type="email" value="" name="EMAIL" class="required form-control email" id="mce-EMAIL">
</div>
<div id="mce-responses" class="clear">
<div class="response" id="mce-error-response" style="display:none"></div>
<div class="response" id="mce-success-response" style="display:none"></div>
</div> <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
<div style="position: absolute; left: -5000px;"><input type="text" name="b_9eed24c6f4f4c06dbb3fa55ab_8d2e570c7e" value=""></div>
<div class="clear"><input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button btn btn-primary"></div>
</form>
</div>
</div>
<div class="col-md-6">
<div class="well">
<div class="demonstration">
<h3>Demonstration</h3>
<p>There are several accessibility problems in here, but QUAIL will find them.</p>
<p><img src="/img/quail_large.png"></p>
</div>
<h3>The code</h3>
<pre><code>$('.demonstration').quail({
jsonPath : '/js/quail/src/resources',
guideline : [ 'imgHasAlt',
'documentAbbrIsUsed'
],
testFailed : function(event) {
...code to highlight problems...
}});</code></pre>
</div>
</div>
</div>
<div class="footer">
<em>Quail logo by <a href="http://lucyconklin.com/">Lucy Conklin</a>.</em>
</div>
</script>
<script type="text/x-handlebars" id="examples">
<h1>Examples</h1>
<p class="lead">
The following examples can all be found in the <code>examples</code> folder of quail. All examples open a new window:
</p>
<ul>
<li><a href="/examples/simple.html">Simple example</a></li>
<li><a href="http://drupala11y.org/content/accessibility-module-demonstration">Integration with a CMS (Drupal)</a></li>
<li><a href="/examples/aloha.html">Aloha editor</a></li>
</ul>
</script>
<script type="text/x-handlebars" id="accessibilityTests">
<div class="page-header">
<h1>Accessibility tests</h1>
</div>
<p class="lead">
Each accessibility test is either a simple selector or a complex JavaScript callback which checks document structure and content clarity. Below is a list of all tests and their related documentation.
</p>
<p>
Tests are entirely optional, they are turned on and off by using a {{#link-to 'guidelines'}}default guideline{{/link-to}}, or you can build your own guideline with as many tests as you wish.
</p>
<table id="tests" class="table table-striped" aria-live="polite">
<thead>
<tr>
<th>Description</th>
<th>QUAIL Name</th>
<th>Tags</th>
<th>Severity</th>
<th>Guidelines</th>
</tr>
</thead>
<tbody>
{{#each test in model}}
<tr>
<td>{{#link-to 'accessibilityTest' test}}{{test.title.en}}{{/link-to}}</td>
<td>{{test.id}}</td>
<td>{{test.tags}}</td>
<td>{{{test.severity}}}</td>
<td>{{test.guidelineLabels}}</td>
</tr>
{{/each}}
</tbody>
</table>
</script>
<script type="text/x-handlebars" id="accessibilityTest">
<div class="page-header">
<h1>{{ title.en }}</h1>
</div>
<div class="row">
<div class="col-md-6">
<h2>Test information</h2>
<p class="lead">{{ description.en }}</p>
<dl class="dl-horizontal">
<dt>Quail name</dt>
<dd><code>{{ id }}</code></dd>
<dt>Test type</dt>
<dd><code>{{ type }}</code></dd>
{{#if selector }}
<dt>Selector</dt>
<dd><code>{{ selector }}</code></dd>
{{/if}}
{{#if callback }}
<dt>Custom callback</dt>
<dd><code>{{ callback }}</code></dd>
{{/if}}
</dl>
<h2>Guidelines</h2>
{{#unless guidelines }}
<div class="alert alert-danger"><strong>No guidelines mapped</strong></div>
{{/unless}}
{{#if guidelines.wcag }}
<h3>{{#link-to 'guidelinesWcag'}}WCAG 2.0{{/link-to}}</h3>
<ul>
{{#each guidelines.wcag}}
<li>{{ id }} - Technique {{ technique }}</li>
{{/each}}
</ul>
{{/if}}
{{!--
{{#if reviewed }}
<div class="alert alert-info"><strong>Test reviewed</strong> Someone has re-written the description of this test.</div>
{{else}}
<h2>Help this test out</h2>
<form>
<div class="form-group">
<label for="help">This test needs an updated title and description. Provide one below (HTML OK):</label>
<textarea id="help" class="form-control">{{ title.en }}
-----
{{description.en}}
</textarea>
</div>
<div class="form-group">
<input type="submit" value="Help out this test" class="btn btn-primary"/>
</div>
</form>
{{/if}}
--}}
</div>
<div class="col-md-6">
<h2>Raw JSON</h2>
<pre id="raw"><code>{{{ raw }}}</code></pre>
</div>
</div>
</script>
<script type="text/x-handlebars" id="guidelines">
<div class="page-header">
<h1>Accessibility guidelines</h1>
</div>
<p class="lead">
QUAIL tests can be aligned with one or more accessibility guideline, and
</p>
<p>
<ul>
<li>{{#link-to 'guidelinesWcag'}}WCAG 2.0{{/link-to}}</li>
<li>{{#link-to 'guidelines508'}}United States Section 508{{/link-to}}</li>
</ul>
</p>
</script>
<script type="text/x-handlebars" id="guidelinesWcag">
<div class="page-header">
<h1>WCAG 2.0</h1>
</div>
<p class="lead">
Since quail tests usually target specific elements on a page, multiple tests are used in combination to meet techniques laid out in <a href="http://www.w3.org/TR/WCAG20/">WCAG 2.0</a>. We are actively working on filling out the gaps in test coverage for WCAG.
</p>
{{#each guideline in model}}
<h3 class="extra-space"><a href="{{{guideline.uri}}}">{{guideline.id}}</a>: {{guideline.description}}</h3>
<table class="table table-striped" id="guideline">
<thead>
<th>Number</th>
<th>Technique</th>
<th>QUAIL Tests</th>
</thead>
<tbody>
{{#each technique in guideline.techniques}}
<tr>
<td><strong>{{technique.id}}</strong></td>
<td>{{technique.description}}</td>
<td>
{{#if technique.tests}}
<ul>
{{#each test in technique.tests}}
<li>{{#link-to 'accessibilityTest' test}}{{test.id}}{{/link-to}}
{{/each}}
</ul>
{{else}}
<strong>No tests defined.</strong>
{{/if}}
</td>
</tr>
{{/each}}
</tbody>
</table>
{{/each}}
</script>
<script type="text/x-handlebars" id="guidelines508">
<div class="page-header">
<h1>Section 508</h1>
</div>
<p class="lead">
<a href="http://www.section508.gov/">Section 508</a> is still the baseline standard for many state and federal institutions in the United States.
</p>
<table class="table table-striped" id="guideline">
<thead>
<th>Letter</th>
<th>Section</th>
<th>QUAIL Tests</th>
</thead>
<tbody>
{{#each guideline in model }}
<tr>
<td><strong>{{guideline.id}}</strong></td>
<td>{{guideline.title}}</td>
<td>
<ul>
{{#each test in guideline.tests }}
<li>{{#link-to 'accessibilityTest' test}}{{test.id}}{{/link-to}}</li>
{{/each}}
</ul>
</td>
</tr>
{{/each}}
</tbody>
</table>
</script>
<script src="js/libs/jquery-1.10.2.js"></script>
<script src="js/libs/handlebars-1.1.2.js"></script>
<script src="js/libs/ember-1.4.0.js"></script>
<script src="js/app.js"></script>
<script src="/dist/quail.jquery.min.js"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.2/js/bootstrap.min.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-39098526-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<!-- quailjs.github.io -->
</body>
</html>