-
Notifications
You must be signed in to change notification settings - Fork 0
/
analytics.html
executable file
·265 lines (260 loc) · 18.1 KB
/
analytics.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
<!DOCTYPE html>
<head>
<meta name="name" content="Contrast/Colorblind Color Picker">
<meta name="description" content="A visual filter to help pick accessible colors - show WCAG and colorblind perception.">
<meta itemprop="image" content="">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Contrast/Colorblind Color Picker</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href=css/bootstrap.min.css rel=stylesheet>
<link href=css/font-awesome.css rel=stylesheet>
<link href="data:text/css;charset=utf-8," data-href=css/bootstrap-theme.min.css rel=stylesheet id=bs-theme-stylesheet>
<link href=css/colorpicker.css rel=stylesheet>
<link href=css/analytics.css rel=stylesheet>
</head>
<body>
<a href="index.html">Back to Index.html</a>
<div id="cas_colorpicker" class="cp_parent-container analytics-mode">
<div class="cp_background-container">
<div class="cp_dropshadow-main-area"></div>
<div class="cp_dropshadow-circle"></div>
<div class="cp_foreground-circle"></div>
<div class="cp_foreground-main-area"></div>
</div>
<div id="cas_colorpicker-contents" class="cp_foreground-container">
<div class="cp_circle-swatch-container">
<div id="cp_background-swatch"></div>
<div id="cp_font-swatch"></div>
</div>
<div class="cp_app-title">
<h2>Contrast Data Analytics</h2>
</div>
<div class="cp_sample">
<div><input aria-label="text sample area" id="cp_sample-content" type="text" value="The quick fox jumped over the lazy brown dog"></div>
</div>
<div class="con-cb-analytics-dashboard-container">
<!-- <h3>Contrast/Colorblind Analytics</h3> -->
<div class="data-table-container">
<div class="data-table">
<div class="data-row">
<div class="data-cell">
<div class="data-tilt-45-heading" tabindex="0" style="margin-left: -20px;
margin-top: -10px;">
<div class="data-heading-subtitle">Contrast-Ratio</div>
</div>
</div>
<div class="data-cell">
<div class="data-tilt-45-heading cb-default-bg" tabindex="0">Normal Vision
</>
</div>
</div>
<div class="data-cell">
<div class="data-tilt-45-heading cb-no-red-bg" tabindex="0">No Red <span class="data-heading-subtitle">(Protonopia)</span>
</>
</div>
</div>
<div class="data-cell">
<div class="data-tilt-45-heading cb-low-red-bg" tabindex="0">Low Red <span class="data-heading-subtitle">(Protonomaly)</span></div>
</div>
<div class="data-cell">
<div class="data-tilt-45-heading cb-no-green-bg" tabindex="0">No Green <span class="data-heading-subtitle">(Deuteranopia)</span></div>
</div>
<div class="data-cell">
<div class="data-tilt-45-heading cb-low-green-bg" tabindex="0">Low Green <span class="data-heading-subtitle">(Deuteranomaly)</span></div>
</div>
<div class="data-cell">
<div class="data-tilt-45-heading cb-no-blue-bg" tabindex="0">No Blue <span class="data-heading-subtitle">(Tritanopia)</span></div>
</div>
<div class="data-cell">
<div class="data-tilt-45-heading cb-low-blue-bg" tabindex="0">Low Blue <span class="data-heading-subtitle">(Tritanomaly)</span></div>
</div>
<div class="data-cell">
<div class="data-tilt-45-heading cb-no-color-bg" tabindex="0">No Color <span class="data-heading-subtitle">(Achromatopsia)</span></div>
</div>
<div class="data-cell">
<div class="data-tilt-45-heading cb-low-color-bg" tabindex="0">Low Color <span class="data-heading-subtitle">(Achromatomaly)</span></div>
</div>
<div class="data-cell">
<!-- empty-cell -->
</div>
</div>
<div class="data-row">
<div class="data-cell">
<div class="contrast-value-mark contrast-value-21">21</div>
<div class="contrast-value-mark contrast-value-7">7</div>
<div class="contrast-value-mark contrast-value-4_5">4.5</div>
<div class="contrast-value-mark contrast-value-3">3</div>
<div class="contrast-value-mark contrast-value-0">0</div>
</div>
<div class="data-cell white-right-border" tabindex="0">
<div class="data-tag" tabindex="0" aria-label="Ratio Value" data-contrast-value="21"></div>
<div class="filter aa-large-filter"></div>
<div class="filter aa-small-aaa-large-filter"></div>
<div class="filter aaa-small-filter"></div>
<div class="filter no-pass-filter"></div>
<div class="swatch-container tooltip-above cb-default-bg">
<div class="font-swatch" data-id="font-swatch-default-color" role="button" tabindex="0"><input id="font-swatch-default-color" value="rgb(140,225,100)" class="sr-hide" aria-hidden="true" tabindex="-1"></div>
<div class="bg-swatch" data-id="bg-swatch-default-color" role="button" tabindex="0"><input id="bg-swatch-default-color" value="rgb(140,225,100)" class="sr-hide" aria-hidden="true" tabindex="-1"></div>
<span class="tooltip-content" role="presentation">Click Swatch to Copy Color </span>
</div>
</div>
<div class="data-cell white-right-border" tabindex="0">
<div class="data-tag" tabindex="0" aria-label="Ratio Value" data-contrast-value="0"></div>
<div class="filter aa-large-filter"></div>
<div class="filter aa-small-aaa-large-filter"></div>
<div class="filter aaa-small-filter"></div>
<div class="filter no-pass-filter"></div>
<div class="swatch-container cb-no-red-bg tooltip-above">
<div class="font-swatch" data-id="font-swatch-no-red" role="button" tabindex="0"><input id="font-swatch-no-red" value="rgb(140,225,100)" class="sr-hide" aria-hidden="true" tabindex="-1"><span></span></div>
<div class="bg-swatch" data-id="bg-swatch-no-red" role="button" tabindex="0"><input id="bg-swatch-no-red" value="rgb(140,225,100)" class="sr-hide" aria-hidden="true" tabindex="-1"></div>
<span class="tooltip-content" role="presentation">Click Swatch to Copy Color </span>
</div>
</div>
<div class="data-cell white-right-border" tabindex="0">
<div class="data-tag" tabindex="0" aria-label="Ratio Value" data-contrast-value="9.6"></div>
<div class="filter aa-large-filter"></div>
<div class="filter aa-small-aaa-large-filter"></div>
<div class="filter aaa-small-filter"></div>
<div class="filter no-pass-filter"></div>
<div class="swatch-container cb-low-red-bg tooltip-above">
<div class="font-swatch" data-id="font-swatch-low-red" role="button" tabindex="0"><input id="font-swatch-low-red" value="rgb(140,225,100)" class="sr-hide" aria-hidden="true" tabindex="-1"></div>
<div class="bg-swatch" data-id="bg-swatch-low-red" role="button" tabindex="0"><input id="bg-swatch-low-red" value="rgb(140,225,100)" class="sr-hide" aria-hidden="true" tabindex="-1"></div>
<span class="tooltip-content" role="presentation">Click Swatch to Copy Color </span>
</div>
</div>
<div class="data-cell white-right-border" tabindex="0">
<div class="data-tag" tabindex="0" aria-label="Ratio Value" data-contrast-value="2.9"></div>
<div class="filter aa-large-filter"></div>
<div class="filter aa-small-aaa-large-filter"></div>
<div class="filter aaa-small-filter"></div>
<div class="filter no-pass-filter"></div>
<div class="swatch-container cb-no-green-bg tooltip-above">
<div class="font-swatch" data-id="font-swatch-no-green" role="button" tabindex="0"><input id="font-swatch-no-green" value="rgb(140,225,100)" class="sr-hide" aria-hidden="true" tabindex="-1"></div>
<div class="bg-swatch" data-id="bg-swatch-no-green" role="button" tabindex="0"><input id="bg-swatch-no-green" value="rgb(140,225,100)" class="sr-hide" aria-hidden="true" tabindex="-1"></div>
<span class="tooltip-content" role="presentation">Click Swatch to Copy Color </span>
</div>
</div>
<div class="data-cell white-right-border" tabindex="0">
<div class="data-tag" tabindex="0" aria-label="Ratio Value" data-contrast-value="5.6"></div>
<div class="filter aa-large-filter"></div>
<div class="filter aa-small-aaa-large-filter"></div>
<div class="filter aaa-small-filter"></div>
<div class="filter no-pass-filter"></div>
<div class="swatch-container cb-low-green-bg tooltip-above">
<div class="font-swatch" data-id="font-swatch-low-green" role="button" tabindex="0"><input id="font-swatch-low-green" value="rgb(140,225,100)" class="sr-hide" aria-hidden="true" tabindex="-1"></div>
<div class="bg-swatch" data-id="bg-swatch-low-green" role="button" tabindex="0"><input id="bg-swatch-low-green" value="rgb(140,225,100)" class="sr-hide" aria-hidden="true" tabindex="-1"></div>
<span class="tooltip-content" role="presentation">Click Swatch to Copy Color </span>
</div>
</div>
<div class="data-cell white-right-border" tabindex="0">
<div class="data-tag" tabindex="0" aria-label="Ratio Value" data-contrast-value="20.8"></div>
<div class="filter aa-large-filter"></div>
<div class="filter aa-small-aaa-large-filter"></div>
<div class="filter aaa-small-filter"></div>
<div class="filter no-pass-filter"></div>
<div class="swatch-container cb-no-blue-bg tooltip-above">
<div class="font-swatch" data-id="font-swatch-no-blue" role="button" tabindex="0"><input id="font-swatch-no-blue" value="rgb(140,225,100)" class="sr-hide" aria-hidden="true" tabindex="-1"></div>
<div class="bg-swatch" data-id="bg-swatch-no-blue" role="button" tabindex="0"><input id="bg-swatch-no-blue" value="rgb(140,225,100)" class="sr-hide" aria-hidden="true" tabindex="-1"></div>
<span class="tooltip-content" role="presentation">Click Swatch to Copy Color </span>
</div>
</div>
<div class="data-cell white-right-border" tabindex="0">
<div class="data-tag" tabindex="0" aria-label="Ratio Value" data-contrast-value="5.6"></div>
<div class="filter aa-large-filter"></div>
<div class="filter aa-small-aaa-large-filter"></div>
<div class="filter aaa-small-filter"></div>
<div class="filter no-pass-filter"></div>
<div class="swatch-container cb-low-blue-bg tooltip-above">
<div class="font-swatch" data-id="font-swatch-low-blue" role="button" tabindex="0"><input id="font-swatch-low-blue" value="rgb(140,225,100)" class="sr-hide" aria-hidden="true" tabindex="-1"></div>
<div class="bg-swatch" data-id="bg-swatch-low-blue" role="button" tabindex="0"><input id="bg-swatch-low-blue" value="rgb(140,225,100)" class="sr-hide" aria-hidden="true" tabindex="-1"></div>
<span class="tooltip-content" role="presentation">Click Swatch to Copy Color </span>
</div>
</div>
<div class="data-cell white-right-border" tabindex="0">
<div class="data-tag" tabindex="0" aria-label="Ratio Value" data-contrast-value="6.1"></div>
<div class="filter aa-large-filter"></div>
<div class="filter aa-small-aaa-large-filter"></div>
<div class="filter aaa-small-filter"></div>
<div class="filter no-pass-filter"></div>
<div class="swatch-container cb-no-color-bg tooltip-above">
<div class="font-swatch" data-id="font-swatch-no-color" role="button" tabindex="0"><input id="font-swatch-no-color" value="rgb(140,225,100)" class="sr-hide" aria-hidden="true" tabindex="-1"></div>
<div class="bg-swatch" data-id="bg-swatch-no-color" role="button" tabindex="0"><input id="bg-swatch-no-color" value="rgb(60,60,60)" class="sr-hide" aria-hidden="true" tabindex="-1"></div>
<span class="tooltip-content" role="presentation">Click Swatch to Copy Color </span>
</div>
</div>
<div class="data-cell white-right-border" tabindex="0">
<div class="data-tag" tabindex="0" aria-label="Ratio Value" data-contrast-value="3.3"></div>
<div class="filter aa-large-filter"></div>
<div class="filter aa-small-aaa-large-filter"></div>
<div class="filter aaa-small-filter"></div>
<div class="filter no-pass-filter"></div>
<div class="swatch-container cb-low-color-bg tooltip-above">
<div class="font-swatch" data-id="font-swatch-low-color" role="button" tabindex="0" role="button"><input id="font-swatch-low-color" value="rgb(140,225,100)" class="sr-hide" aria-hidden="true" tabindex="-1"></div>
<div class="bg-swatch" data-id="bg-swatch-low-color" role="button" tabindex="0" role="button"><input id="bg-swatch-low-color" value="rgb(140,225,100)" class="sr-hide" aria-hidden="true" tabindex="-1"></div>
<span class="tooltip-content" role="presentation">Click Swatch to Copy Color </span>
</div>
</div>
<div class="data-cell" style="width:auto;">
<div class="svg-container" aria-hidden="true">
<svg class="trap-shape trap-green ui-display" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none">
<polygon fill="rgb(215,235,175)" points="0,0 0,100 100,70 100,50"></polygon>
</svg>
<svg class="trap-shape trap-blue ui-display" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none">
<polygon fill="rgb(160,235,235)" points="0,50 0,100 100,65 100,0"></polygon>
</svg>
<svg class="trap-shape trap-yellow ui-display" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none">
<polygon fill="rgb(255,240,140)" points="0,20 0,60 100,100 100,10"></polygon>
</svg>
<svg class="trap-shape trap-gray ui-display" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none">
<polygon fill="rgb(209,209,209)" points="0,0 0,50 100,100 100,45"></polygon>
</svg>
</div>
<div class="wcag-key-container">
<div id="aaa-small-filter-btn" aria-label="announce triple-a small cases" role="button" class="wcag-key aaa-small" tabindex="0" data-filter-set=".data-tag[data-wcag-value='aaa-small']">
<div class="sub-container">
<div class="pos-top">AAA</div>
<div class="pos-bottom">small</div>
</div>
</div><br>
<div id="aa-small-aaa-large-filter-btn" aria-label="announce double-a small, triple-a large cases" role="button" class="wcag-key wcag-key-2xwidth aa-small-aaa-large" tabindex="0" data-filter-set=".data-tag[data-wcag-value='aa-small-aaa-large']">
<div class="sub-container sub-inline">
<div class="pos-top">AA</div>
<div class="pos-bottom">small</div>
</div>
<div class="sub-container sub-inline sub-middle">
+
</div>
<div class="sub-container sub-inline">
<div class="pos-top">AAA</div>
<div class="pos-bottom">large</div>
</div>
</div><br>
<div id="aa-large-filter-btn" aria-label="announce double-a small cases" class="wcag-key aa-large" role="button" tabindex="0" data-filter-set=".data-tag[data-wcag-value='aa-large']">
<div class="sub-container">
<div class="pos-top">AA</div>
<div class="pos-bottom">large</div>
</div>
</div><br>
<div id="fail-filter-btn" aria-label="announce fail cases" role="button" class="wcag-key no-pass" tabindex="0" data-filter-set=".data-tag[data-wcag-value='fail']">
<div class="sub-container">
<div class="pos-top">AA/AAA</div>
<div class="pos-bottom">FAIL </div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src=js/jquery.js></script>
<script src="js/TweenLite.min.js"></script>
<script src="js/Draggable.min.js"></script>
<script src="js/CSSPlugin.min.js"></script>
<!-- <script src=js/colorpicker.js></script> -->
<script src=js/analytics.js></script>
</body>
</html>