js: Fix math again.
I misunderstood how multiprogressbar works. Values aren't expected to progressively grow larger; it takes care of the summing itself.
This commit is contained in:
		
							parent
							
								
									52bcf1152a
								
							
						
					
					
						commit
						1637a36dfe
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		|  | @ -52,8 +52,7 @@ $(document).ready(function() { | |||
|         // We've got
 | ||||
|         var leftOver = noCommaMatchFinalGoal - noCommaSiteSoFar; | ||||
|         var supporterProgress = (noCommaSiteSoFar / noCommaSiteFinalGoal) * 100; | ||||
|         var matchProgress = (noCommaSiteMatchCount / noCommaSiteFinalGoal) * 100; | ||||
|         var needProgress = supporterProgress + (100 - matchProgress); | ||||
|         var needProgress = (leftOver / noCommaSiteFinalGoal) * 100; | ||||
| 
 | ||||
|         $('#siteprogressbar'). | ||||
|             multiprogressbar({ parts: [ | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Brett Smith
						Brett Smith