mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-11 01:15:49 +08:00
enabled puncuation and numbers for custom
This commit is contained in:
parent
ad960b2c88
commit
8297e45b45
1 changed files with 4 additions and 4 deletions
|
@ -623,10 +623,10 @@ async function initWords() {
|
|||
randomWord = Misc.getASCII();
|
||||
}
|
||||
|
||||
if (config.punctuation && config.mode != "custom") {
|
||||
if (config.punctuation) {
|
||||
randomWord = punctuateWord(previousWord, randomWord, i, wordsBound);
|
||||
}
|
||||
if (config.numbers && config.mode != "custom") {
|
||||
if (config.numbers) {
|
||||
if (Math.random() < 0.1) {
|
||||
randomWord = Misc.getNumbers(4);
|
||||
}
|
||||
|
@ -3227,8 +3227,8 @@ function setMode(mode, nosave) {
|
|||
$("#top .config .wordCount").addClass("hidden");
|
||||
$("#top .config .time").addClass("hidden");
|
||||
$("#top .config .customText").removeClass("hidden");
|
||||
$("#top .config .punctuationMode").addClass("hidden");
|
||||
$("#top .config .numbersMode").addClass("hidden");
|
||||
$("#top .config .punctuationMode").removeClass("hidden");
|
||||
$("#top .config .numbersMode").removeClass("hidden");
|
||||
$("#top .config .quoteLength").addClass("hidden");
|
||||
setPunctuation(false, true);
|
||||
setNumbers(false, true);
|
||||
|
|
Loading…
Reference in a new issue