From 8917a67b13e7c2b06b0143e764a154bce10999ab Mon Sep 17 00:00:00 2001 From: root Date: Wed, 24 Feb 2021 11:34:48 -0500 Subject: [PATCH] added read ahead hard funbox --- src/js/script.js | 6 +++++- static/funbox/_list.json | 5 +++++ static/funbox/read_ahead_hard.css | 5 +++++ 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 static/funbox/read_ahead_hard.css diff --git a/src/js/script.js b/src/js/script.js index 8f2412973..331455583 100644 --- a/src/js/script.js +++ b/src/js/script.js @@ -355,7 +355,11 @@ async function activateFunbox(funbox, mode) { restartTest(); } - if (funbox === "read_ahead" || funbox === "read_ahead_easy") { + if ( + funbox === "read_ahead" || + funbox === "read_ahead_easy" || + funbox === "read_ahead_hard" + ) { setHighlightMode("letter", true); restartTest(); } diff --git a/static/funbox/_list.json b/static/funbox/_list.json index f410e79a6..4bc8a6846 100644 --- a/static/funbox/_list.json +++ b/static/funbox/_list.json @@ -84,6 +84,11 @@ "type": "style", "info": "Only the current word is invisible." }, + { + "name": "read_ahead_hard", + "type": "style", + "info": "Current and the next two words are invisible." + }, { "name": "memory", "type": "script", diff --git a/static/funbox/read_ahead_hard.css b/static/funbox/read_ahead_hard.css new file mode 100644 index 000000000..6da2218d7 --- /dev/null +++ b/static/funbox/read_ahead_hard.css @@ -0,0 +1,5 @@ +#words .word.active:nth-of-type(n + 2), +#words .word.active:nth-of-type(n + 2) + .word, +#words .word.active:nth-of-type(n + 2) + .word + .word { + color: transparent; +}