Make rise level consistent for both items.
With this change, both numbers should go up at the same rate.
This commit is contained in:
parent
7ea7e8ef60
commit
9d0627610f
1 changed files with 3 additions and 2 deletions
|
@ -15,7 +15,8 @@ $(document).ready(function() {
|
||||||
var curValue = 0.00;
|
var curValue = 0.00;
|
||||||
var incrementSoFar = 0.00;
|
var incrementSoFar = 0.00;
|
||||||
var curDonationCount = 0;
|
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',
|
$('span#fundraiser-percentage').css({ 'color' : 'green',
|
||||||
'font-weight' : 'bold',
|
'font-weight' : 'bold',
|
||||||
|
@ -32,7 +33,7 @@ $(document).ready(function() {
|
||||||
var newVal = (curValue / 100.00) * noCommaGoal;
|
var newVal = (curValue / 100.00) * noCommaGoal;
|
||||||
$("#progressbar").progressbar({ value: curValue });
|
$("#progressbar").progressbar({ value: curValue });
|
||||||
$('span#fundraiser-so-far').text(newVal.toLocaleString());
|
$('span#fundraiser-so-far').text(newVal.toLocaleString());
|
||||||
curValue += 0.5;
|
curValue += riseLevelPercent;
|
||||||
setTimeout(riseDonationProgressBar, 50);
|
setTimeout(riseDonationProgressBar, 50);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue