mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-11 08:14:11 +08:00
Merge branch 'master' of https://github.com/Miodec/monkey-type
This commit is contained in:
commit
5f93de03fa
2 changed files with 6 additions and 1 deletions
|
@ -92,7 +92,7 @@ const layouts = {
|
|||
" "
|
||||
],
|
||||
azerty : [
|
||||
"&1","é2","\"3","'4","(5","-6","è7","_8","ç9","à0",")°","=+",
|
||||
"`~","&1","é2","\"3","'4","(5","-6","è7","_8","ç9","à0",")°","=+",
|
||||
"aA","zZ","eE","rR","tT","yY","uU","iI","oO","pP","^¨","$£","*µ",
|
||||
"qQ","sS","dD","fF","gG","hH","jJ","kK","lL","mM","ù%",
|
||||
"wW","xX","cC","vV","bB","nN",",?",";.",":/","!§",
|
||||
|
|
|
@ -569,6 +569,9 @@ function addWord() {
|
|||
if (config.punctuation && config.mode != "custom") {
|
||||
randomWord = punctuateWord(previousWord, randomWord, wordsList.length, 0);
|
||||
}
|
||||
if (activeFunBox === "gibberish") {
|
||||
randomWord = getGibberish();
|
||||
}
|
||||
wordsList.push(randomWord);
|
||||
|
||||
let w = "<div class='word'>";
|
||||
|
@ -661,6 +664,7 @@ function compareInput(showError) {
|
|||
if (config.difficulty == "master") {
|
||||
if (!resultVisible) {
|
||||
inputHistory.push(currentInput);
|
||||
correctedHistory.push(currentCorrected);
|
||||
document
|
||||
.querySelector("#words .word.active")
|
||||
.setAttribute("input", currentInput);
|
||||
|
@ -1992,6 +1996,7 @@ function startTest() {
|
|||
hideCaret();
|
||||
testActive = false;
|
||||
inputHistory.push(currentInput);
|
||||
correctedHistory.push(currentCorrected);
|
||||
showResult();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue