From 82f69664c1b3f331912942d100a7dd794d2829ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Wed, 20 May 2020 14:59:48 +0200 Subject: [PATCH 1/2] MAPG-32 use Math.ceil instead of Math.round for scorebar --- public/static/js/mapguesser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/static/js/mapguesser.js b/public/static/js/mapguesser.js index 759f25c..10043ae 100644 --- a/public/static/js/mapguesser.js +++ b/public/static/js/mapguesser.js @@ -42,7 +42,7 @@ }, calculateScoreBarProperties: function (score) { - var percent = Math.round((score / Core.MAX_SCORE) * 100); + var percent = Math.ceil((score / Core.MAX_SCORE) * 100); var color; if (percent >= 90) { From 961e6e23802198668c6b56b78d1517b3ca0376d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Wed, 20 May 2020 15:00:11 +0200 Subject: [PATCH 2/2] MAPG-32 use default width (0) for scorebar --- public/static/css/mapguesser.css | 1 + 1 file changed, 1 insertion(+) diff --git a/public/static/css/mapguesser.css b/public/static/css/mapguesser.css index 0c8b591..19f7fae 100644 --- a/public/static/css/mapguesser.css +++ b/public/static/css/mapguesser.css @@ -149,6 +149,7 @@ button:disabled { #scoreBar { height: 100%; + width: 0; transition-property: width; transition-duration: 1.0s; }