js: Fix needProgress math.

This commit is contained in:
Brett Smith 2016-11-29 13:25:53 -05:00
parent d663bcabdc
commit 05290a6352

View file

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