mirror of
				https://github.com/flynx/PortableMag.git
				synced 2025-10-30 19:40:12 +00:00 
			
		
		
		
	minor tweeks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									168eb725fb
								
							
						
					
					
						commit
						ccd7e6ecfa
					
				
							
								
								
									
										34
									
								
								index.html
									
									
									
									
									
								
							
							
						
						
									
										34
									
								
								index.html
									
									
									
									
									
								
							| @ -245,6 +245,23 @@ function setupEditor(){ | |||||||
| 		}) | 		}) | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | 	// move the page indicator... | ||||||
|  | 	// NOTE: this is to be used for page-specific toolbars etc. | ||||||
|  | 	$('.viewer') | ||||||
|  | 		.on('pageChanged', function(){ | ||||||
|  | 			var cur = $('.current.page') | ||||||
|  | 			var indicator = $('.current-page-indicator') | ||||||
|  | 			var shift = getElementShift($('.magazine')) | ||||||
|  | 			// XXX this is a stub... | ||||||
|  | 			// reverse the align... | ||||||
|  | 			indicator | ||||||
|  | 				.width(cur.width()) | ||||||
|  | 				.height(cur.height()) | ||||||
|  | 				.css({ | ||||||
|  | 					left: getPageInMagazineOffset(cur), | ||||||
|  | 					top: 0, | ||||||
|  | 				}) | ||||||
|  | 		}) | ||||||
| } | } | ||||||
| function clearEditor(){ | function clearEditor(){ | ||||||
| 	$('.current-page-indicator').children().remove() | 	$('.current-page-indicator').children().remove() | ||||||
| @ -347,23 +364,6 @@ $(document).ready(function(){ | |||||||
| 		.on('magazineDataLoaded', loadMagazineChrome) | 		.on('magazineDataLoaded', loadMagazineChrome) | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 		// move the page indicator... |  | ||||||
| 		// NOTE: this is to be used for page-specific toolbars etc. |  | ||||||
| 		.on('pageChanged', function(){ |  | ||||||
| 			var cur = $('.current.page') |  | ||||||
| 			var indicator = $('.current-page-indicator') |  | ||||||
| 			var shift = getElementShift($('.magazine')) |  | ||||||
| 			// XXX this is a stub... |  | ||||||
| 			// reverse the align... |  | ||||||
| 			indicator |  | ||||||
| 				.width(cur.width()) |  | ||||||
| 				.height(cur.height()) |  | ||||||
| 				.css({ |  | ||||||
| 					left: getPageInMagazineOffset(cur), |  | ||||||
| 					top: 0, |  | ||||||
| 				}) |  | ||||||
| 		}) |  | ||||||
| 
 |  | ||||||
| 
 | 
 | ||||||
| 	$('.viewer').css('overflow', 'hidden') | 	$('.viewer').css('overflow', 'hidden') | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user