Changeset - 9d0627610fa6
[Not reviewed]
0 1 0
Bradley Kuhn (bkuhn) - 6 years ago 2015-03-12 01:57:06
bkuhn@ebb.org
Make rise level consistent for both items.

With this change, both numbers should go up at the same rate.
1 file changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
www/conservancy/static/supporter-page.js
Show inline comments
...
 
@@ -15,7 +15,8 @@ $(document).ready(function() {
 
    var curValue = 0.00;
 
    var incrementSoFar = 0.00;
 
    var curDonationCount = 0;
 
    var incrementDonationCount = Math.round( 0.01 * donationCount );
 
    var riseLevelPercent = 0.5;
 
    var incrementDonationCount = Math.round( (riseLevelPercent / 100) * donationCount );
 

	
 
    $('span#fundraiser-percentage').css({ 'color'        : 'green',
 
                                          'font-weight'  : 'bold',
...
 
@@ -32,7 +33,7 @@ $(document).ready(function() {
 
            var newVal = (curValue / 100.00) * noCommaGoal;
 
            $("#progressbar").progressbar({ value:  curValue });
 
            $('span#fundraiser-so-far').text(newVal.toLocaleString());
 
            curValue += 0.5;
 
            curValue += riseLevelPercent;
 
            setTimeout(riseDonationProgressBar, 50);
 
        }
 
    }
0 comments (0 inline, 0 general)