mirror of
				https://github.com/flynx/PortableMag.git
				synced 2025-10-31 03:50:16 +00:00 
			
		
		
		
	several minor updates...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									0a39dc2cd7
								
							
						
					
					
						commit
						cb5cd6861e
					
				
							
								
								
									
										2
									
								
								TODO.otl
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								TODO.otl
									
									
									
									
									
								
							| @ -6,6 +6,8 @@ | ||||
| 		[_] BUG: no drag threshold on excludedElements (TouchSwipe) | ||||
| 		| stalled... | ||||
| 	[_] 80% general todo | ||||
| 		[_] add global credits and copyright page... | ||||
| 		| list and link all the used software and authors... | ||||
| 		[_] 25% add inline editor... | ||||
| 			[X] prepare the basic framework to accept the ckeditor | ||||
| 			| keyboard handler, touchswipe and other event handlers... | ||||
|  | ||||
							
								
								
									
										15
									
								
								buttons.svg
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								buttons.svg
									
									
									
									
									
								
							| @ -3,14 +3,21 @@ | ||||
|  <g display="none"> | ||||
|   <title>bookmark</title> | ||||
|   <rect stroke="#ffffff" id="svg_1" height="28.604868" width="24.052915" y="5.858955" x="8.807377" fill-opacity="0" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" fill="#afafaf"/> | ||||
|   <path stroke="#ffffff" id="svg_4" d="m21.762226,3.651895l8.416584,0l0,14.510554l-4.124887,-2.792193l-4.291697,2.792193l0,-14.510554l0,0z" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke-width="0" fill="#ff0000"/> | ||||
|   <path stroke="#ffffff" id="svg_4" d="m21.76223,3.6519l8.41658,0l0,14.510551l-4.124889,-2.792191l-4.291691,2.792191l0,-14.510551l0,0z" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke-width="0" fill="#ff0000"/> | ||||
|  </g> | ||||
|  <g display="none"> | ||||
|   <title>next</title> | ||||
|   <path stroke="#ffffff" id="svg_11" d="m23.175751,20.132858l-8.773797,-14.254913l5.77823,0l8.773788,14.254913l-8.773788,14.254913l-5.77823,0l8.773797,-14.254913z" fill-opacity="0" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" fill="#afafaf"/> | ||||
|   <path stroke="#ffffff" id="svg_11" d="m23.175751,20.13286l-8.773801,-14.25492l5.77823,0l8.77379,14.25492l-8.77379,14.254911l-5.77823,0l8.773801,-14.254911z" fill-opacity="0" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" fill="#afafaf"/> | ||||
|  </g> | ||||
|  <g display="none"> | ||||
|   <title>prev</title> | ||||
|   <path transform="rotate(-180 18.9697 20.1122)" id="svg_13" stroke="#ffffff" d="m20.467501,20.112249l-8.77377,-14.25492l5.778199,0l8.77379,14.25492l-8.77379,14.254911l-5.778199,0l8.77377,-14.254911z" fill-opacity="0" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" fill="#afafaf"/> | ||||
|  </g> | ||||
|  <g display="inline"> | ||||
|   <title>prev</title> | ||||
|   <path transform="rotate(-180 18.9697 20.1122)" id="svg_13" stroke="#ffffff" d="m20.467497,20.112247l-8.773763,-14.254913l5.778195,0l8.773788,14.254913l-8.773788,14.25491l-5.778195,0l8.773763,-14.25491z" fill-opacity="0" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" fill="#afafaf"/> | ||||
|   <title>Info</title> | ||||
|   <g id="svg_3"> | ||||
|    <circle fill="#000000" stroke-dasharray="null" stroke-linejoin="null" stroke-linecap="null" fill-opacity="0" cx="20.341617" cy="20.120354" r="14.302816" id="svg_2" stroke="#ffffff"/> | ||||
|    <text fill="#ffffff" stroke-width="0" stroke-dasharray="null" stroke-linejoin="null" stroke-linecap="null" x="19.914334" y="23.397665" id="svg_5" font-size="24" font-family="Sans-serif" text-anchor="middle" xml:space="preserve" stroke-opacity="0" transform="matrix(1.02694 0 0 1.02694 -0.348556 4.34707)" stroke="#000000">i</text> | ||||
|   </g> | ||||
|  </g> | ||||
| </svg> | ||||
|  | ||||
| Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.9 KiB | 
							
								
								
									
										22
									
								
								index.html
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								index.html
									
									
									
									
									
								
							| @ -10,14 +10,14 @@ | ||||
| <script src="jquery.js"></script> | ||||
| <script src="jquery.touchSwipe.js"></script> | ||||
| <script src="jstorage.js"></script> | ||||
| <!-- XXX make this optional... --> | ||||
| <script src="ckeditor/ckeditor.js"></script> | ||||
| 
 | ||||
| <script src="jli.js"></script> | ||||
| <script src="magazine.js"></script> | ||||
| 
 | ||||
| <script src="keybindings.js"></script> | ||||
| 
 | ||||
| <!-- configuration, keep this last... --> | ||||
| <script src="keybindings.js"></script> | ||||
| <script src="config.js"></script> | ||||
| 
 | ||||
| <script> | ||||
| @ -136,6 +136,8 @@ $(document).ready(function(){ | ||||
| }) | ||||
| 
 | ||||
| // setup ckeditor events... | ||||
| // XXX need to $('[contenteditable]').attr('contenteditable', 'false') on | ||||
| //		thumbnail view mode and true on page view mode... | ||||
| CKEDITOR.on('instanceCreated', function(evt){ | ||||
| 	var editor = evt.editor | ||||
| 	editor.on('focus', function(){ | ||||
| @ -174,7 +176,6 @@ CKEDITOR.on('instanceCreated', function(evt){ | ||||
| 			<div class="button prev-bookmark"> | ||||
| 				<a href="#prevBookmark"> | ||||
| 					<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"> | ||||
| 					 <!-- Created with SVG-edit - http://svg-edit.googlecode.com/ --> | ||||
| 					 <g> | ||||
| 					  <title>Previous bookmark (S-Left)</title> | ||||
| 					  <path transform="rotate(-180 18.9697 20.1122)" id="svg_13" stroke="#ffffff" d="m20.467497,20.112247l-8.773763,-14.254913l5.778195,0l8.773788,14.254913l-8.773788,14.25491l-5.778195,0l8.773763,-14.25491z" fill-opacity="0" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" fill="#afafaf"/> | ||||
| @ -185,7 +186,6 @@ CKEDITOR.on('instanceCreated', function(evt){ | ||||
| 			<div class="button toggle-bookmark"> | ||||
| 				<a href="#bookmark"> | ||||
| 					<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"> | ||||
| 					 <!-- Created with SVG-edit - http://svg-edit.googlecode.com/ --> | ||||
| 					 <g> | ||||
| 					  <title>Toggle bookmark (B)</title> | ||||
| 					  <rect stroke="#ffffff" id="svg_1" height="28.604868" width="24.052915" y="5.858955" x="8.807377" fill-opacity="0" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" fill="#afafaf"/> | ||||
| @ -197,7 +197,6 @@ CKEDITOR.on('instanceCreated', function(evt){ | ||||
| 			<div class="button next-bookmark"> | ||||
| 				<a href="#nextBookmark"> | ||||
| 					<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"> | ||||
| 					 <!-- Created with SVG-edit - http://svg-edit.googlecode.com/ --> | ||||
| 					 <g> | ||||
| 					  <title>Next bookmark (S-Right)</title> | ||||
| 					  <path stroke="#ffffff" id="svg_11" d="m23.175751,20.132858l-8.773797,-14.254913l5.77823,0l8.773788,14.254913l-8.773788,14.254913l-5.77823,0l8.773797,-14.254913z" fill-opacity="0" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" fill="#afafaf"/> | ||||
| @ -205,6 +204,19 @@ CKEDITOR.on('instanceCreated', function(evt){ | ||||
| 					</svg> | ||||
| 				</a> | ||||
| 			</div> | ||||
| 			<div class="button info" style="opacity: 0.3"> | ||||
| 				<a href="javascript:alert('not implemented yet...')"> | ||||
| 					<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"> | ||||
| 					 <g> | ||||
| 					  <title>Info</title> | ||||
| 					  <g id="svg_3"> | ||||
| 					   <circle fill="#000000" stroke-dasharray="null" stroke-linejoin="null" stroke-linecap="null" fill-opacity="0" cx="20.341617" cy="20.120354" r="14.302816" id="svg_2" stroke="#ffffff"/> | ||||
| 					   <text fill="#ffffff" stroke-width="0" stroke-dasharray="null" stroke-linejoin="null" stroke-linecap="null" x="19.914334" y="23.397665" id="svg_5" font-size="24" font-family="Sans-serif" text-anchor="middle" xml:space="preserve" stroke-opacity="0" transform="matrix(1.02694 0 0 1.02694 -0.348556 4.34707)" stroke="#000000">i</text> | ||||
| 					  </g> | ||||
| 					 </g> | ||||
| 					</svg> | ||||
| 				</a> | ||||
| 			</div> | ||||
| 		</div> | ||||
| 	</div> | ||||
| 	<div class="bottom-toolbar"> | ||||
|  | ||||
| @ -38,6 +38,7 @@ var USE_REAL_PAGE_SIZES = false | ||||
| var togglePageDragging = createCSSClassToggler('.viewer', 'dragging') | ||||
| 
 | ||||
| 
 | ||||
| // toggles the editor mode, used for inline magazine editor...
 | ||||
| var toggleEditorMode = createCSSClassToggler('.viewer', 'editor-mode noSwipe') | ||||
| 
 | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user