mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-31 11:20:09 +00:00 
			
		
		
		
	
		
			
	
	
		
			30 lines
		
	
	
		
			755 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
		
		
			
		
	
	
			30 lines
		
	
	
		
			755 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
|  | /********************************************************************** | ||
|  | *  | ||
|  | * | ||
|  | * | ||
|  | **********************************************************************/ | ||
|  | 
 | ||
|  | //var DEBUG = DEBUG != null ? DEBUG : true
 | ||
|  | 
 | ||
|  | 
 | ||
|  | /*********************************************************************/ | ||
|  | 
 | ||
|  | // XXX make this save and restore settings...
 | ||
|  | var toggleSingleImageMode = createCSSClassToggler('.viewer',  | ||
|  | 		'single-image-mode', | ||
|  | 		function(action){ | ||
|  | 			if(action == 'on'){ | ||
|  | 				TRANSITION_MODE_DEFAULT = 'css' | ||
|  | 				fitNImages(1) | ||
|  | 			} else { | ||
|  | 				TRANSITION_MODE_DEFAULT = 'animate' | ||
|  | 				fitNImages(5) | ||
|  | 			} | ||
|  | 		}) | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  | /********************************************************************** | ||
|  | * vim:set ts=4 sw=4 :                                                */ |