Changeset - 05290a635276
[Not reviewed]
0 1 0
Brett Smith (brett) - 5 years ago 2016-11-29 18:25:53
brett@sfconservancy.org
js: Fix needProgress math.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
www/conservancy/static/js/supporter-page.js
Show inline comments
...
 
@@ -47,13 +47,13 @@ $(document).ready(function() {
 

	
 
    if (noCommaSiteSoFar >= noCommaSiteMiddleGoal) {
 
        // We've got
 
        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: [
 
                { value: supporterProgress,
 
                  text: noCommaSiteSoFar.toLocaleString() + " have joined!",
 
                  barClass: "progress", textClass: "soFarText" },
0 comments (0 inline, 0 general)