/
panel.html
120 lines (111 loc) · 3.56 KB
/
panel.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
<!doctype html>
<html style="display: flex">
<head>
<meta charset="utf8">
<style>
h1 {
color: rgb(70, 76, 88);
font-size: 20px;
line-height: 24px;
font-weight: normal;
margin-top: 0;
}
h2 {
color: rgb(110, 116, 128);
font-size: 16px;
line-height: 20px;
font-weight: normal;
margin-top: 0;
}
body {
padding: 16px;
background-color: white;
}
.warning {
color: #e69808;
}
.severe {
color: #c10f0f;
}
.vbox {
display: flex;
flex-direction: row;
}
.sidebar {
overflow-x: hidden;
background: #f3f3f3;
max-width: 330px;
min-width: 170px;
}
.f {
margin-bottom: 16px;
}
button {
background-image: linear-gradient(hsl(0, 0%, 93%), hsl(0, 0%, 93%) 38%, hsl(0, 0%, 87%));
border: 1px solid hsla(0, 0%, 0%, 0.25);
border-radius: 2px;
box-shadow: 0 1px 0 hsla(0, 0%, 0%, 0.08), inset 0 1px 2px hsla(0, 100%, 100%, 0.75);
color: hsl(0, 0%, 27%);
font-size: 12px;
margin: 0 1px 0 0;
text-shadow: 0 1px 0 hsl(0, 0%, 94%);
min-height: 2em !important;
padding-left: 10px;
padding-right: 10px;
-webkit-user-select: none;
flex: none;
}
</style>
</head>
<body>
<h1>ChromeLens</h1>
<p>A tool for accessibility development</p>
<section class="f">
<h2>Lenses</h2>
<p>See how the page looks like through the eyes of someone with vision issues.</p>
<input id="lensEnabledCheckbox" type="checkbox"><span>Enable lens</span></input>
<select id="lensSelector" disabled="true">
<option value="full_blindness">Full blindness</option>
<option value="partial_blindness_mild">Partial blindness (mild)</option>
<option value="partial_blindness_medium">Partial blindness (medium)</option>
<option value="partial_blindness_serious">Partial blindness (serious)</option>
<option value="protanomaly">Protanomaly (red-weak)</option>
<option value="protanopia">Protanopia (red-blind)</option>
<option value="deuteranomaly">Deuteranomaly (green-weak)</option>
<option value="deuteranopia">Deuteranopia (green-blind)</option>
<option value="tritanomaly">Tritanomaly (blue-weak)</option>
<option value="tritanopia">Tritanopia (blue-blind)</option>
<option value="achromatomaly">Achromatomaly (RGB-weak)</option>
<option value="achromatopsia">Achromatopsia (RGB-blind)</option>
</select>
<div id="lensDetail"></div>
<div id="statsDetail"></div>
</section>
<section class="f">
<h2>Accessibility checks</h2>
<p>Audits the current page using Google's accessibility developer tools.</p>
<button id='runAxs'>
Run accessibility checks
</button>
<button id='clearAxs' style='visibility: hidden'>
Clear checks
</button>
<div id="axs-results">
</div>
</section>
<section class="f">
<h2>Trace tab path</h2>
<p>
Key website features should be keyboard-navigable with the tab button.
Trace the path of your tab navigation flow graphically with this tool.
</p>
<button id='traceTabPath'>
Start trace
</button>
<button id='pngTabPath' style="visibility: hidden">
Download PNG
</button>
</section>
<script src="panel.js" type="text/javascript" charset="utf-8"></script>
</body>
</html>