mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-04 04:51:16 +08:00
added blind display to the result page and account page
This commit is contained in:
parent
b0d302c618
commit
15aa784f85
2 changed files with 8 additions and 2 deletions
|
@ -399,6 +399,9 @@ function loadMoreLines(){
|
|||
if (result.punctuation) {
|
||||
withpunc = '<br>punctuation';
|
||||
}
|
||||
if (result.blindMode) {
|
||||
withpunc = '<br>blind';
|
||||
}
|
||||
let diff = result.difficulty;
|
||||
if (diff == undefined){
|
||||
diff = 'normal';
|
||||
|
@ -416,10 +419,10 @@ function loadMoreLines(){
|
|||
<td>${result.acc}%</td>
|
||||
<td>${result.correctChars}</td>
|
||||
<td>${result.incorrectChars}</td>
|
||||
<td>${result.mode}<br>${result.mode2}${withpunc}</td>
|
||||
<td>${result.mode} ${result.mode2}${withpunc}</td>
|
||||
<td>${diff}</td>
|
||||
<td>${result.language.replace('_','<br>')}</td>
|
||||
<td>${moment(result.timestamp).format('DD MMM YYYY HH:mm')}</td>
|
||||
<td>${moment(result.timestamp).format('DD MMM YYYY<br>HH:mm')}</td>
|
||||
</tr>`);
|
||||
}
|
||||
visibleTableLines+=10;
|
||||
|
|
|
@ -605,6 +605,9 @@ function showResult(difficultyFailed = false) {
|
|||
if (config.punctuation) {
|
||||
testType += "<br>punctuation"
|
||||
}
|
||||
if (config.blindMode) {
|
||||
testType += "<br>blind"
|
||||
}
|
||||
if (config.difficulty == "expert") {
|
||||
testType += "<br>expert";
|
||||
}else if(config.difficulty == "master"){
|
||||
|
|
Loading…
Reference in a new issue