From 9d0627610fa66b6896b4b6c238b022165f132827 Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Wed, 11 Mar 2015 18:57:06 -0700 Subject: [PATCH] Make rise level consistent for both items. With this change, both numbers should go up at the same rate. --- www/conservancy/static/supporter-page.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/www/conservancy/static/supporter-page.js b/www/conservancy/static/supporter-page.js index 8b4a7857..7aa74685 100644 --- a/www/conservancy/static/supporter-page.js +++ b/www/conservancy/static/supporter-page.js @@ -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); } }