js: Fix math again.

I misunderstood how multiprogressbar works.  Values aren't expected to
progressively grow larger; it takes care of the summing itself.
This commit is contained in:
Brett Smith 2016-11-29 13:45:44 -05:00
parent 52bcf1152a
commit 1637a36dfe

View file

@ -52,8 +52,7 @@ $(document).ready(function() {
// We've got
var leftOver = noCommaMatchFinalGoal - noCommaSiteSoFar;
var supporterProgress = (noCommaSiteSoFar / noCommaSiteFinalGoal) * 100;
var matchProgress = (noCommaSiteMatchCount / noCommaSiteFinalGoal) * 100;
var needProgress = supporterProgress + (100 - matchProgress);
var needProgress = (leftOver / noCommaSiteFinalGoal) * 100;
$('#siteprogressbar').
multiprogressbar({ parts: [