Vehicle energy consumption and production simulator
				
			 
			
		 
		
		
		
		
		
		
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
	
	
		
	
		
			
				
				
					
						
						
						
							|  | namespace HtmlUtils { | 
						
						
						
							|  | 	export function closest (el: Element, predicate: (e: Element) => boolean) { | 
						
						
						
							|  | 		do if (predicate(el)) return el; | 
						
						
						
							|  | 		while (el = el && <Element>el.parentNode); | 
						
						
						
							|  | 	} | 
						
						
						
							|  | }
 | 
						
						
						
							|  | 
 |