You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 209674a
Browse filesBrowse the repository at this point in the historyBrowse files
Raise text contrast, expose the passage to screen readers, add a focus hint, and blur only typed text in Hard Mode
- Untyped text, labels, and primary buttons now meet WCAG AA contrast.
An axe check in the tests covers the main screen and both dialogs.
- The passage is copied into a visually hidden element that describes
the input. Settings pills set aria-pressed, and the result dialog is
described by its WPM and accuracy.
- When the input loses focus, a hint covers the passage. A letter key
pressed elsewhere moves focus back to the input.
- Hard Mode blurs characters already typed instead of the whole passage.
Fixes#7, fixes#8, fixes#9, fixes#10.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,11 +16,13 @@ Open `index.html` in a browser, or serve the folder with any static file server.
16
16
-**Stats**: WPM, accuracy, mistakes, and your best WPM for the current settings, updated as you type.
17
17
- WPM is correct characters divided by five, per minute of real elapsed time.
18
18
- Accuracy is the share of typed characters that matched, counting mistakes you later fixed. It is rounded down, so 100% means no mistakes.
19
-
-**Hard Mode**: blurs the text you are typing.
19
+
-**Hard Mode**: blurs the characters you have already typed, so you cannot see your mistakes. The text ahead stays readable.
20
20
-**Ghost Mode**: records the timing of your best run and replays its position as a second cursor while you type.
21
21
-**Results**: a modal with your WPM and accuracy, a line chart of your last ten runs at the current settings once you have two or more, and a button that copies a one-line summary to the clipboard.
22
22
-**Sound**: short tones made with the Web Audio API for keypress, mistake, and completion. Can be turned off.
23
23
-**Keyboard**: Tab restarts while you are typing. Escape closes a dialog. Opening Settings during a run abandons the run.
24
+
-**Focus**: if the typing input loses focus, a hint appears over the text. Pressing a letter key moves focus back to the input.
25
+
-**Screen readers**: the passage is available as the input's description, settings buttons report whether they are selected, and the result dialog reads out WPM and accuracy.
24
26
-**Reduced motion**: with the OS reduce-motion setting on, the background pulse, caret blink, and fades are turned off.
25
27
26
28
Pasting into the input is blocked, and the caret stays at the end: arrow keys, Home, End, select-all, and clicks do not move it.
0 commit comments