mirror of
				https://github.com/flynx/PortableMag.git
				synced 2025-10-31 20:10:13 +00:00 
			
		
		
		
	cleanup and updated todo...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									3d7a0d10ef
								
							
						
					
					
						commit
						8b89de93c8
					
				
							
								
								
									
										18
									
								
								TODO.otl
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								TODO.otl
									
									
									
									
									
								
							| @ -1,21 +1,25 @@ | |||||||
| Priority work | [_] 12% Priority work | ||||||
| 	[_] 10% basic features | 	[_] 0% general todo | ||||||
| 		[_] 85% basic article navigation | 		[_] use modes (CSS) for thumbnail/page views... | ||||||
|  | 	[_] 50% stage 1 - basic features | ||||||
|  | 		[X] real magazine structure | ||||||
|  | 		[_] issue browser structure | ||||||
|  | 		[_] global navigation bar | ||||||
|  | 		[X] 100% basic article navigation | ||||||
| 			[X] next page | 			[X] next page | ||||||
| 			[X] prev page | 			[X] prev page | ||||||
| 			[X] show previews | 			[X] show previews | ||||||
| 			[_] show global navigation bar |  | ||||||
| 			[X] go home | 			[X] go home | ||||||
| 			[X] go to prev article | 			[X] go to prev article | ||||||
| 			[X] go to next article | 			[X] go to next article | ||||||
| 		[_] global navigation bar | 		[X] real previews | ||||||
| 		[_] real previews |  | ||||||
| 		| use zoom to show a ribbon... | 		| use zoom to show a ribbon... | ||||||
| 		[_] 0% issue navigation | 		[_] 0% issue navigation | ||||||
| 			[_] issue list | 			[_] issue list | ||||||
| 			[_] 0% issue download | 			[_] 0% issue download | ||||||
| 				[_] whole edition dowload and update (primary mode) | 				[_] whole edition dowload and update (primary mode) | ||||||
| 				[_] seporate issue download (secondary) | 				[_] seporate issue download (secondary) | ||||||
|  | 	[_] 0% stage 2 - templates and examples | ||||||
| 		[_] 0% default cover templates | 		[_] 0% default cover templates | ||||||
| 		[_] 0% default page templates | 		[_] 0% default page templates | ||||||
| 		| a template is a class and predefined content... | 		| a template is a class and predefined content... | ||||||
| @ -42,7 +46,7 @@ Priority work | |||||||
| 			[_] plain | 			[_] plain | ||||||
| 		[_] 0% default actions | 		[_] 0% default actions | ||||||
| 			[_] show in overlay | 			[_] show in overlay | ||||||
| 	[_] 0% advanced features | 	[_] 0% stage 3 - advanced features | ||||||
| 		[_] 0% edition editor / publisher | 		[_] 0% edition editor / publisher | ||||||
| 			[_] create/delete edition | 			[_] create/delete edition | ||||||
| 			[_] cover | 			[_] cover | ||||||
|  | |||||||
							
								
								
									
										17
									
								
								index.html
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								index.html
									
									
									
									
									
								
							| @ -16,17 +16,7 @@ $(document).ready(function(){ | |||||||
| 
 | 
 | ||||||
| 	$('.viewer') | 	$('.viewer') | ||||||
| 		.swipe({ | 		.swipe({ | ||||||
| 			//swipeLeft: nextPage, |  | ||||||
| 			//swipeRight: prevPage, |  | ||||||
| 			swipeStatus: swipeUpdate, | 			swipeStatus: swipeUpdate, | ||||||
| 			//swipeStatus: unanimated($('.magazine'), swipeUpdate), |  | ||||||
| 			/* |  | ||||||
| 			swipeStatus: function(evt, phase, direction, distance){ |  | ||||||
| 				doWithoutTransitions( |  | ||||||
| 					$('.magazine'),  |  | ||||||
| 					function(){swipeUpdate(evt, phase, direction, distance)}) |  | ||||||
| 			}, |  | ||||||
| 			*/ |  | ||||||
| 			// XXX change this to pinch... | 			// XXX change this to pinch... | ||||||
| 			swipeUp: function(){ | 			swipeUp: function(){ | ||||||
| 				PAGES_VISIBLE = 6 | 				PAGES_VISIBLE = 6 | ||||||
| @ -78,13 +68,14 @@ function swipeUpdate(evt, phase, direction, distance){ | |||||||
| 
 | 
 | ||||||
| 	} else if ( phase =='end' ) { | 	} else if ( phase =='end' ) { | ||||||
| 		// see which page is closer to the middle of the screen and set it... | 		// see which page is closer to the middle of the screen and set it... | ||||||
|  | 		// do this based on how much we dragged... | ||||||
| 		var p = Math.ceil((distance/scale)/cur.width()) | 		var p = Math.ceil((distance/scale)/cur.width()) | ||||||
| 
 | 
 | ||||||
|  | 		// prev page... | ||||||
| 		if(direction == 'right') { | 		if(direction == 'right') { | ||||||
| 			// prev page... |  | ||||||
| 			setCurrentPage(Math.max(n-p, 0)) | 			setCurrentPage(Math.max(n-p, 0)) | ||||||
|  | 		// next page... | ||||||
| 		} else if (direction == 'left'){ | 		} else if (direction == 'left'){ | ||||||
| 			// next page... |  | ||||||
| 			setCurrentPage(Math.min(n+p, pages.length-1)) | 			setCurrentPage(Math.min(n+p, pages.length-1)) | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| @ -150,6 +141,7 @@ function prevPage(){ | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | 
 | ||||||
| function goToMagazineCover(){ | function goToMagazineCover(){ | ||||||
| 	setCurrentPage(0) | 	setCurrentPage(0) | ||||||
| } | } | ||||||
| @ -158,6 +150,7 @@ function goToArticleCover(){ | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | 
 | ||||||
| function nextArticle(){ | function nextArticle(){ | ||||||
| 	var cur = $('.current.page').parents('.article') | 	var cur = $('.current.page').parents('.article') | ||||||
| 	// we are at the magazine cover cover... | 	// we are at the magazine cover cover... | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user