Score given in percentage
This commit is contained in:
@ -706,7 +706,8 @@ $(function() {
|
||||
var renderScore = function() {
|
||||
var score = $('#score').data('score');
|
||||
var maxium_score = $('#score').data('maximum-score');
|
||||
$('.score').html((score || '?') + ' / ' + maxium_score);
|
||||
var percentage_score = score / maxium_score * 100
|
||||
$('.score').html((percentage_score || 0) + ' % ');
|
||||
renderProgressBar(score, maxium_score);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user