Skip to content

Commit 36dfbbf

Browse files
authored
Update examples.js
1 parent eb67257 commit 36dfbbf

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

examples/examples.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ const LEVEL_LABELS = ['REJECT', 'AA L', 'AA', 'AAA', 'AAA'];
55
const FONT_SIZE = ['32px', '24px', '18.7px', '16px', '12px'];
66
const PADDING = ['0.1em 0.25em', '0.33em', '0.8em', '1em', '1.1em'];
77
const APCA_LABELS = [ //[0, 15, 22, 30, 37.5, 45, 52.5, 60, 67.5, 75, 82.5, 90, 110];
8-
['REJECT','NO TXT','NO TXT','SPOT-B','SUBFL1','FLUENT','FLUENT','BODYMN','BODYTX','BODYTX','BODYTX'], // 32px
9-
['REJECT','NO TXT','NO TXT','SPOT-A','SUBFL1','FLUENT','FLUENT','BODYMN','BODYTX','BODYTX','BODYTX'], // 24px
10-
['REJECT','NO TXT','NO TXT','SPOT-B','SUBFL1','FLUENT','FLUENT','BODYMN','BODYTX','BODYTX','BODYTX'], // 18.7px
11-
['REJECT','NO TXT','NO TXT','SPOT-B','SUBFL1','SUBFL2','FLUENT','BODYMN','BODYTX','BODYTX','BODYTX'], // 16px
12-
['REJECT','NO TXT','NO TXT','SPOT-B','SUBFL1','SUBFL2','FLUENT','FLUENT','FLUENT','FLUENT','FLUENT'], // 12px
8+
['REJECT','NO TXT','NO TXT','SPOT-B','SUBFL1','FLUENT','FLUENT','BODYMN','BODYTX','BODYTX','TOO-HI'], // 32px
9+
['REJECT','NO TXT','NO TXT','SPOT-A','SPOT-B','SUBFL1','FLUENT','BODYMN','BODYMN','BODYTX','BODYTX'], // 24px
10+
['REJECT','NO TXT','NO TXT','SPOT-A','SPOT-B','SUBFL1','FLUENT','FLUENT','FLUENT','BODYMN','BODYTX'], // 18.7px
11+
['REJECT','REJECT','REJECT','SPOT-A','SPOT-B','SUBFL2','SUBFL2','FLUENT','FLUENT','BODYMN','BODYTX'], // 16px
12+
['REJECT','REJECT','REJECT','NO TXT','NO TXT','SUBFL2','SUBFL2','SUBFL2','SUBFL2','SUBFL2','SUBFL2'], // 12px
1313
];
1414

1515
// [0,15,22,30,37.5,45,52.5,60,67.5,75,82.5,90,110];
@@ -35,8 +35,6 @@ const COLORS = [
3535
['#bbbbbb', '#000000', '#ffffff'],
3636
['#cccccc', '#000000', '#ffffff'],
3737
['#dddddd', '#000000', '#ffffff'],
38-
['#eeeeee', '#000000', '#ffffff'],
39-
4038
['#9999ff', '#000000', '#ffffff'],
4139
['#00bf00', '#000000', '#ffffff'],
4240
['#ff7373', '#000000', '#ffffff'],
@@ -100,7 +98,7 @@ var addExample = function(fg, bg) {
10098

10199
var apca_contrast = apca.contrast(cfg, cbg);
102100
var apca_level = getLevel(apca_contrast, apca);
103-
apca_level = Math.max(0, apca_level - offset);
101+
// apca_level = Math.max(0, apca_level - offset);
104102

105103
clone.querySelector('.apca output').textContent = apca_contrast.toFixed(1);
106104
clone.querySelector('.apca .badge').textContent = APCA_LABELS[wcag_level][apca_level];

0 commit comments

Comments
 (0)