Merged in bugfix/MAPG-32-use-ceil-instead-of-round-for-score-percent (pull request #9)

bugfix/MAPG-32-use-ceil-instead-of-round-for-score-percent
This commit is contained in:
Bence Pőcze 2020-05-20 13:03:31 +00:00
commit 6437e923c5
2 changed files with 2 additions and 1 deletions

View File

@ -149,6 +149,7 @@ button:disabled {
#scoreBar { #scoreBar {
height: 100%; height: 100%;
width: 0;
transition-property: width; transition-property: width;
transition-duration: 1.0s; transition-duration: 1.0s;
} }

View File

@ -42,7 +42,7 @@
}, },
calculateScoreBarProperties: function (score) { calculateScoreBarProperties: function (score) {
var percent = Math.round((score / Core.MAX_SCORE) * 100); var percent = Math.ceil((score / Core.MAX_SCORE) * 100);
var color; var color;
if (percent >= 90) { if (percent >= 90) {