added blind display to the result page and account page

This commit is contained in:
Jack 2020-05-30 19:22:11 +01:00
parent b0d302c618
commit 15aa784f85
2 changed files with 8 additions and 2 deletions

View file

@ -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;

View file

@ -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"){