From 8e27cf030f5353e3c19730017a98fbf88a39eb71 Mon Sep 17 00:00:00 2001 From: Jack Date: Wed, 27 May 2020 01:00:28 +0100 Subject: [PATCH] added input history display to the results page --- public/css/style.scss | 25 ++++++++++-- public/index.html | 10 +++-- public/js/script.js | 93 +++++++++++++++++++++++++++++++++++++++++-- 3 files changed, 118 insertions(+), 10 deletions(-) diff --git a/public/css/style.scss b/public/css/style.scss index d2447bae5..a405212cb 100644 --- a/public/css/style.scss +++ b/public/css/style.scss @@ -617,7 +617,6 @@ key { .loginTip{ grid-column: 1/3; text-align: center; - margin-top: 1rem; color: var(--sub-color); } .stats{ @@ -710,6 +709,13 @@ key { display: block; } +#wordsTitle{ + color: var(--sub-color); + margin-left: .25rem; + margin-top: 1rem; + display: none; +} + #words { height: fit-content; display: flex; @@ -719,7 +725,7 @@ key { user-select: none; } -#restartTestButton { +#restartTestButton, #showWordHistoryButton { position: relative; opacity: 0; border-radius: var(--roundness); @@ -728,7 +734,7 @@ key { width: -moz-min-content; color: var(--sub-color); transition: 0.25s; - margin: 1rem auto 0 auto; + margin-top: 1rem; cursor: pointer; &:hover, &:focus { @@ -740,6 +746,10 @@ key { } } +#showWordHistoryButton{ + opacity: 1; +} + .word { margin: .25rem; color: var(--sub-color); @@ -807,6 +817,15 @@ key { opacity: 0.5; } +.pageTest{ + .buttons{ + display: grid; + grid-auto-flow: column; + gap: 1rem; + justify-content: center; + } +} + .pageLogin{ display: flex; grid-auto-flow: column; diff --git a/public/index.html b/public/index.html index 3a96c8f30..7f6f5f640 100644 --- a/public/index.html +++ b/public/index.html @@ -159,8 +159,6 @@
- -