mirror of
https://github.com/flynx/PortableMag.git
synced 2025-12-17 09:01:48 +00:00
done with bookmarks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
c715262f0d
commit
f08b00eb6f
19
TODO.otl
19
TODO.otl
@ -5,16 +5,7 @@
|
|||||||
| touchdown point.
|
| touchdown point.
|
||||||
[_] BUG: no drag threshold on excludedElements (TouchSwipe)
|
[_] BUG: no drag threshold on excludedElements (TouchSwipe)
|
||||||
| stalled...
|
| stalled...
|
||||||
[_] 80% general todo
|
[_] 81% general todo
|
||||||
[_] 75% bookmarks
|
|
||||||
[_] add next/prev bookmark actions
|
|
||||||
[_] bookmark indicators in page view
|
|
||||||
[X] #bookmark anchor
|
|
||||||
[X] bookmark indicators in navigator
|
|
||||||
[X] bookmark indicators in thumbnails
|
|
||||||
[X] bookmark persistence
|
|
||||||
[X] set bookmark from keyboard...
|
|
||||||
[X] set bookmark touch control
|
|
||||||
[_] magazine loader and data format...
|
[_] magazine loader and data format...
|
||||||
| this is simple, just use a restyled magazine viewer...
|
| this is simple, just use a restyled magazine viewer...
|
||||||
[_] 0% populate an example issue
|
[_] 0% populate an example issue
|
||||||
@ -28,6 +19,14 @@
|
|||||||
| e.g. setting "shown"/"hidden" classes in HTML and adding
|
| e.g. setting "shown"/"hidden" classes in HTML and adding
|
||||||
| something like a page reset that will restore the default state,
|
| something like a page reset that will restore the default state,
|
||||||
| rather than the current "hideLayers"
|
| rather than the current "hideLayers"
|
||||||
|
[X] 100% bookmarks
|
||||||
|
[X] add next/prev bookmark actions
|
||||||
|
[X] #bookmark anchor
|
||||||
|
[X] bookmark indicators in navigator
|
||||||
|
[X] bookmark indicators in thumbnails
|
||||||
|
[X] bookmark persistence
|
||||||
|
[X] set bookmark from keyboard...
|
||||||
|
[X] set bookmark touch control
|
||||||
[X] vanquish opacity effects
|
[X] vanquish opacity effects
|
||||||
| they slow everything down considerably!
|
| they slow everything down considerably!
|
||||||
[X] add keyboard navigation...
|
[X] add keyboard navigation...
|
||||||
|
|||||||
@ -62,14 +62,14 @@ var keybindings = {
|
|||||||
37: {
|
37: {
|
||||||
'default': prevPage, // Right
|
'default': prevPage, // Right
|
||||||
'ctrl': prevArticle, // ctrl-Right
|
'ctrl': prevArticle, // ctrl-Right
|
||||||
'alt': prevArticle, // alt-Right
|
'shift': prevBookmark // shift-Right
|
||||||
},
|
},
|
||||||
8: 37, // BkSp
|
8: 37, // BkSp
|
||||||
188: 37, // <
|
188: 37, // <
|
||||||
39: {
|
39: {
|
||||||
'default': nextPage, // Left
|
'default': nextPage, // Left
|
||||||
'ctrl': nextArticle, // ctrl-Left
|
'ctrl': nextArticle, // ctrl-Left
|
||||||
'alt': nextArticle, // alt-Left
|
'shift': nextBookmark // shift-Left
|
||||||
},
|
},
|
||||||
32: 39, // Space
|
32: 39, // Space
|
||||||
190: 39, // >
|
190: 39, // >
|
||||||
|
|||||||
@ -77,6 +77,8 @@ body {
|
|||||||
margin-top: -50px;
|
margin-top: -50px;
|
||||||
margin-left: 750px;
|
margin-left: 750px;
|
||||||
|
|
||||||
|
cursor: hand;
|
||||||
|
|
||||||
z-index: 9999;
|
z-index: 9999;
|
||||||
opacity: 0,5;
|
opacity: 0,5;
|
||||||
|
|
||||||
@ -336,6 +338,8 @@ body {
|
|||||||
|
|
||||||
background: red;
|
background: red;
|
||||||
|
|
||||||
|
cursor: hand;
|
||||||
|
|
||||||
-webkit-transform: rotate(45deg);
|
-webkit-transform: rotate(45deg);
|
||||||
-moz-transform: rotate(45deg);
|
-moz-transform: rotate(45deg);
|
||||||
-o-transform: rotate(45deg);
|
-o-transform: rotate(45deg);
|
||||||
|
|||||||
16
magazine.js
16
magazine.js
@ -666,7 +666,7 @@ function makeBookmarkIndicator(n){
|
|||||||
.prependTo($('.navigator .bar'))
|
.prependTo($('.navigator .bar'))
|
||||||
.addClass('bookmark')
|
.addClass('bookmark')
|
||||||
.css({
|
.css({
|
||||||
left: width*n
|
left: width*n + width*0.75
|
||||||
})
|
})
|
||||||
.attr({
|
.attr({
|
||||||
page: n
|
page: n
|
||||||
@ -735,10 +735,20 @@ function toggleBookmark(n){
|
|||||||
|
|
||||||
// XXX move this to actions...
|
// XXX move this to actions...
|
||||||
function nextBookmark(){
|
function nextBookmark(){
|
||||||
// XXX
|
var pages = $('.page')
|
||||||
|
pages = $(pages.splice(getPageNumber()+1))
|
||||||
|
page = pages.children('.bookmark').first().parents('.page')
|
||||||
|
if(page.length != 0){
|
||||||
|
return setCurrentPage(page)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
function prevBookmark(){
|
function prevBookmark(){
|
||||||
// XXX
|
var pages = $('.page')
|
||||||
|
pages.splice(getPageNumber())
|
||||||
|
page = pages.children('.bookmark').last().parents('.page')
|
||||||
|
if(page.length != 0){
|
||||||
|
return setCurrentPage(page)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user