js: Fix needProgress math.
This commit is contained in:
parent
d663bcabdc
commit
05290a6352
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ $(document).ready(function() {
|
||||||
var leftOver = noCommaMatchFinalGoal - noCommaSiteSoFar;
|
var leftOver = noCommaMatchFinalGoal - noCommaSiteSoFar;
|
||||||
var supporterProgress = (noCommaSiteSoFar / noCommaSiteFinalGoal) * 100;
|
var supporterProgress = (noCommaSiteSoFar / noCommaSiteFinalGoal) * 100;
|
||||||
var matchProgress = (noCommaSiteMatchCount / noCommaSiteFinalGoal) * 100;
|
var matchProgress = (noCommaSiteMatchCount / noCommaSiteFinalGoal) * 100;
|
||||||
var needProgress = 100 - matchProgress;
|
var needProgress = supporterProgress + (100 - matchProgress);
|
||||||
|
|
||||||
$('#siteprogressbar').
|
$('#siteprogressbar').
|
||||||
multiprogressbar({ parts: [
|
multiprogressbar({ parts: [
|
||||||
|
|
Loading…
Reference in a new issue