mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-30 19:00:09 +00:00 
			
		
		
		
	added dragging to main prototype -- neads cleanup and polishing...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									d7e18a0d70
								
							
						
					
					
						commit
						49f896a834
					
				| @ -5,6 +5,7 @@ | |||||||
| <link rel="stylesheet" href="gallery.css"> | <link rel="stylesheet" href="gallery.css"> | ||||||
| <link rel="stylesheet" href="markers.css"> | <link rel="stylesheet" href="markers.css"> | ||||||
| <script src="jquery.js"></script> | <script src="jquery.js"></script> | ||||||
|  | <script src="jquery-ui-1.8.22.custom.min.js"></script> | ||||||
| 
 | 
 | ||||||
| <script src="jquery.touchSwipe.js"></script> | <script src="jquery.touchSwipe.js"></script> | ||||||
| <!-- script src="jquery.wipetouch.js"></script--> | <!-- script src="jquery.wipetouch.js"></script--> | ||||||
| @ -44,6 +45,10 @@ function setup(){ | |||||||
| 	// XXX STUB | 	// XXX STUB | ||||||
| 	loadImages(image_list) | 	loadImages(image_list) | ||||||
| 
 | 
 | ||||||
|  | 	// setup the dragging framework... | ||||||
|  | 	// XXX make this work seamlessly with touchSwipe... | ||||||
|  | 	$('.field').draggable() | ||||||
|  | 
 | ||||||
| 	// set the default position and init... | 	// set the default position and init... | ||||||
| 	$('.current.image').click() | 	$('.current.image').click() | ||||||
| } | } | ||||||
| @ -87,6 +92,11 @@ $(document).ready(setup); | |||||||
| 
 | 
 | ||||||
| 	<br><br> | 	<br><br> | ||||||
| 
 | 
 | ||||||
|  | 	<button onclick="centerCurrentImage()">center current</button> | ||||||
|  | 	<button onclick="centerOrigin()">center origin</button> | ||||||
|  | 
 | ||||||
|  | 	<br><br> | ||||||
|  | 
 | ||||||
| 	<button onclick="firstImage()">first (home)</button> | 	<button onclick="firstImage()">first (home)</button> | ||||||
| 	<button onclick="prevImage()">prev (left)</button> | 	<button onclick="prevImage()">prev (left)</button> | ||||||
| 	<button onclick="nextImage()">next (right)</button> | 	<button onclick="nextImage()">next (right)</button> | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user