From 534c2d680a4ee105db55e7d0335382050397bf2a Mon Sep 17 00:00:00 2001 From: Jack Date: Fri, 4 Sep 2020 21:11:24 +0100 Subject: [PATCH] fixed timernumber centering --- public/css/style.scss | 5 +++++ public/index.html | 2 +- public/js/script.js | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/public/css/style.scss b/public/css/style.scss index fb824b72e..1592648bf 100644 --- a/public/css/style.scss +++ b/public/css/style.scss @@ -718,6 +718,11 @@ a:hover { } #timerNumber { + width: 0; + height: 0; + margin: 0 auto; + display: grid; + justify-content: center; bottom: 6rem; transition: none; } diff --git a/public/index.html b/public/index.html index 786b3d8c5..406bfc15e 100644 --- a/public/index.html +++ b/public/index.html @@ -1001,7 +1001,7 @@ -
60
+
60
60
diff --git a/public/js/script.js b/public/js/script.js index e0e15ca93..a7250fad2 100644 --- a/public/js/script.js +++ b/public/js/script.js @@ -1092,7 +1092,7 @@ function updateTimer() { // } // } let displayTime = secondsToString(config.time - time); - $("#timerNumber").html(displayTime); + $("#timerNumber").html("
"+displayTime+"
"); // $("#timerNumber").html(config.time - time); } else if (config.timerStyle === "mini") { let displayTime = secondsToString(config.time - time); @@ -1136,7 +1136,7 @@ function updateTimer() { outof = customText.length; } } - $("#timerNumber").html(`${inputHistory.length}/${outof}`); + $("#timerNumber").html("
"+`${inputHistory.length}/${outof}`+"
"); // $("#timerNumber").html(config.time - time); } else if (config.timerStyle === "mini") { let outof = wordsList.length;