From b4bc68c5c293b2522e7b5c9ad9e375e8b9e2da20 Mon Sep 17 00:00:00 2001 From: David Martin Date: Tue, 11 Aug 2020 16:05:38 -0500 Subject: [PATCH] reformatted with prettier --- .prettierrc | 3 +- public/index.html | 417 ++++++++++++++++++++++++++++++++++---------- public/js/script.js | 2 +- 3 files changed, 325 insertions(+), 97 deletions(-) diff --git a/.prettierrc b/.prettierrc index 222861c34..9ecd5a034 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,4 +1,5 @@ { "tabWidth": 2, - "useTabs": false + "useTabs": false, + "htmlWhitespaceSensitivity": "ignore" } diff --git a/public/index.html b/public/index.html index cb4d08e6b..0ffac5300 100644 --- a/public/index.html +++ b/public/index.html @@ -67,13 +67,14 @@
-
@@ -1053,10 +1224,16 @@

keybinds

- You can use tab and enter (or just - tab if you have quick tab mode enabled) to restart the - typing test. Open the command line by pressing esc - - there you can access all the functionality you need without + You can use + tab + and + enter + (or just + tab + if you have quick tab mode enabled) to restart the typing test. + Open the command line by pressing + esc + - there you can access all the functionality you need without touching your mouse.

@@ -1097,36 +1274,40 @@

bug report or feature request

If you encounter a bug, or have a feature request - join the - Discord server, send me a message on Reddit or create an issue on - GitHub. + + Discord server + + , send me a message on Reddit or create an issue on + + GitHub + + .

credits

- montydrei + + montydrei + - name suggestion

Everyone + Everyone + who provided valuable feedback on the original reddit post for the prototype of this website

Contributors + Contributors + on GitHub that have helped with implementing various features, adding themes and more.

@@ -1136,16 +1317,19 @@

If you wish to support this project, help pay for hosting and fuel my caffeine addiction, you can donate - here. + + here + + .

-
avg consistency
(last 10 tests)
+
+ avg consistency +
+ (last 10 tests) +
-
@@ -2155,8 +2376,13 @@
- tab and enter - restart test
- esc - command line + tab + and + enter + - restart test +
+ esc + - command line
Crafted with <3 by @@ -2164,20 +2390,21 @@ tabindex="0" href="https://www.reddit.com/message/compose?to=Miodec" target="_blank" - >Miodec + Miodec +
Contribute on - GitHub + + GitHub +
Support by - donating + + donating +
version
diff --git a/public/js/script.js b/public/js/script.js index cbd35e20c..bdff37637 100644 --- a/public/js/script.js +++ b/public/js/script.js @@ -145,7 +145,7 @@ function copyResultToClipboard() { } function activateFunbox(funbox, mode) { - if (funbox === "none") { + if (funbox === "none" || funbox !== "earthquake") { $("#funBoxTheme").attr("href", ``); activeFunBox = "none"; }