Fix math error.

This commit is contained in:
Bradley M. Kuhn 2016-02-23 19:45:16 -08:00
parent 99ff4771a1
commit e260280ee1

View file

@ -33,8 +33,7 @@ $(document).ready(function() {
if (noCommaSiteSoFar >= noCommaSiteMiddleGoal) { if (noCommaSiteSoFar >= noCommaSiteMiddleGoal) {
// We've got // We've got
var moreCount = noCommaSiteSoFar - noCommaSiteMiddleGoal; var leftOver = noCommaMatchFinalGoal - noCommaSiteSoFar;
var leftOver = noCommaMatchFinalGoal - (moreCount + 750 + noCommaSiteMatchCount);
moreCount = moreCount.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); moreCount = moreCount.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
$('#siteprogressbar'). $('#siteprogressbar').