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<!--
Demo Step 4:
Create new check with name "viewport-font-resize", category "page content", ruleset "axe-core", and this check code:
const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch({ headless: false });
const page = await browser.newPage();
await page.goto('https://example.com'); // Replace with your URL
// Simulate 200% text zoom
await page.evaluate(() => {
document.body.style.zoom = '2.0';
});
// Check for content overflow
const hasOverflow = await page.evaluate(() => {
return document.documentElement.scrollWidth > window.innerWidth ||
document.documentElement.scrollHeight > window.innerHeight;
});
console.log(hasOverflow ? 'Content overflows at 200% text size.' : 'Content fits at 200% text size.');
await browser.close();
})();
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Checks - Equalify</title>
</head>
<body>
<header>
<nav aria-label="Main">
<ul>
<li><a href="#">Pages</a></li>
<li><a href="#">Issues</a></li>
<li><a href="#">Audits</a></li>
<li><a href="#">Logs</a></li>
<li><a href="#">Pages</a></li>
<li><a href="#">Logs</a></li>
<li><a href="#">Account</a></li>
</ul>
</nav>
</header>
<main>
<h1>Checks</h1>
<section>
<h2>Create Check</h2>
<form action="5-checks-saved.html" method="get">
<label for="check_name">Check Name:</label>
<input id="check_name" type="text" required>
<label for="check_ruleset">Ruleset:</label>
<select id="check_ruleset" required>
<option>axe-core</option>
<option>Editora11y</option>
<option>Other..</option>
</select>
<label for="check_category">Category:</label>
<select id="check_category" required>
<option>ARIA-related</option>
<option>Page Content</option>
<option>Meta Checks</option>
<option>Headings</option>
<option>Text Alternatives</option>
<option>Meaningful Links</option>
<option>General Quality Assurance</option>
<option>Other..</option>
</select>
<label for="check_code">Check Code:</label>
<textarea id="check_code" required></textarea>
<button>Create Check</button>
</form>
</section>
<section>
<h2>View Options</h2>
<form>
<fieldset>
<legend>Ruleset</legend>
<label>
<input type="checkbox" checked> axe-core
</label>
<label>
<input type="checkbox" checked> Editora11y
</label>
</fieldset>
<fieldset>
<legend>Category</legend>
<label>
<input type="checkbox" checked> ARIA-Related
</label>
<label>
<input type="checkbox" checked> Page Content
</label>
<label>
<input type="checkbox" checked> Meta Checks
</label>
<label>
<input type="checkbox" checked> Headings
</label>
<label>
<input type="checkbox" checked> Text Alternatives
</label>
<label>
<input type="checkbox" checked> Meaningful Links
</label>
<label>
<input type="checkbox" checked> General Quality Assurance
</label>
</fieldset>
<fieldset>
<legend>Sort By</legend>
<label>
<input name="sort" type="radio" checked> Name (A to Z)
</label>
<label>
<input name="sort" type="radio"> Name (Z to A)
</label>
<label>
<input name="sort" type="radio"> Ruleset (A to Z)
</label>
<label>
<input name="sort" type="radio"> Ruleset (Z to A)
</label>
<label>
<input name="sort" type="radio"> Category (A to Z)
</label>
<label>
<input name="sort" type="radio"> Category (Z to A)
</label>
</fieldset>
<fieldset>
<legend>Search</legend>
<label>
Enter Keyword: <input type="text" id="search-input">
</label>
</fieldset>
<button>Save View Options</button>
</form>
</section>
<section>
<h2>All Checks</h2>
<table>
<thead>
<tr>
<th>Name</th>
<th>Ruleset</th>
<th>Category</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="#">aria-allowed-role</a></td>
<td>axe-core</td>
<td>ARIA-Related</td>
</tr>
<tr>
<td><a href="#">aria-prohibited-attr</a></td>
<td>axe-core</td>
<td>ARIA-Related</td>
</tr>
<tr>
<td><a href="#">aria-required-children</a></td>
<td>axe-core</td>
<td>Page Content</td>
</tr>
<tr>
<td><a href="#">page-has-heading-one</a></td>
<td>axe-core</td>
<td>Page Content</td>
</tr>
<tr>
<td><a href="#">page-has-main</a></td>
<td>axe-core</td>
<td>Page Content</td>
</tr>
<tr>
<td><a href="#">color-contrast</a></td>
<td>axe-core</td>
<td>Page Content</td>
</tr>
<tr>
<td><a href="#">no-autoplay-audio</a></td>
<td>axe-core</td>
<td>Page Content</td>
</tr>
<tr>
<td><a href="#">meta-viewport</a></td>
<td>axe-core</td>
<td>Meta Checks</td>
</tr>
<tr>
<td><a href="#">meta-refresh</a></td>
<td>axe-core</td>
<td>Meta Checks</td>
</tr>
<tr>
<td><a href="#">skipped-heading-levels</a></td>
<td>Editora11y</td>
<td>Headings</td>
</tr>
</tbody>
</table>
<nav aria-label="Checks Table">
Showing 11 of 56 Checks <button>Load More Checks</button>
</nav>
</section>
</main>
<footer>
<section>
<h2>Scan Quota</h2>
<p>0 free scans remaining. <a href="#">Upgrade</a>.</p>
</section>
<section>
<h2>Need help?</h2>
<p>Email <a href="#">support@equalify.app</a>.</p>
</section>
</footer>
</body>
</html>