mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-09-06 22:56:49 +08:00
extra letters will now show when using word highlight and can be hidden using hide extra letters
This commit is contained in:
parent
1065dabbd1
commit
545a568971
1 changed files with 6 additions and 0 deletions
|
@ -996,6 +996,12 @@ function compareInput(showError) {
|
|||
for (let i = 0; i < currentWord.length; i++) {
|
||||
ret += `<letter class="${classString}">` + currentWord[i] + `</letter>`;
|
||||
}
|
||||
if (currentInput.length > currentWord.length && !config.hideExtraLetters) {
|
||||
for (let i = currentWord.length; i < currentInput.length; i++) {
|
||||
ret +=
|
||||
`<letter class="${classString}">` + currentInput[i] + `</letter>`;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for (let i = 0; i < input.length; i++) {
|
||||
let charCorrect;
|
||||
|
|
Loading…
Add table
Reference in a new issue