From 15aa784f85c2deff616e8159c4c67b99f8fd4be8 Mon Sep 17 00:00:00 2001 From: Jack Date: Sat, 30 May 2020 19:22:11 +0100 Subject: [PATCH] added blind display to the result page and account page --- public/js/account.js | 7 +++++-- public/js/script.js | 3 +++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/public/js/account.js b/public/js/account.js index fea431426..18f84a20e 100644 --- a/public/js/account.js +++ b/public/js/account.js @@ -399,6 +399,9 @@ function loadMoreLines(){ if (result.punctuation) { withpunc = '
punctuation'; } + if (result.blindMode) { + withpunc = '
blind'; + } let diff = result.difficulty; if (diff == undefined){ diff = 'normal'; @@ -416,10 +419,10 @@ function loadMoreLines(){ ${result.acc}% ${result.correctChars} ${result.incorrectChars} - ${result.mode}
${result.mode2}${withpunc} + ${result.mode} ${result.mode2}${withpunc} ${diff} ${result.language.replace('_','
')} - ${moment(result.timestamp).format('DD MMM YYYY HH:mm')} + ${moment(result.timestamp).format('DD MMM YYYY
HH:mm')} `); } visibleTableLines+=10; diff --git a/public/js/script.js b/public/js/script.js index 4f64b8ddd..3297c1409 100644 --- a/public/js/script.js +++ b/public/js/script.js @@ -605,6 +605,9 @@ function showResult(difficultyFailed = false) { if (config.punctuation) { testType += "
punctuation" } + if (config.blindMode) { + testType += "
blind" + } if (config.difficulty == "expert") { testType += "
expert"; }else if(config.difficulty == "master"){