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:
commit
6437e923c5
@ -149,6 +149,7 @@ button:disabled {
|
||||
|
||||
#scoreBar {
|
||||
height: 100%;
|
||||
width: 0;
|
||||
transition-property: width;
|
||||
transition-duration: 1.0s;
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user