mirror of
https://github.com/flynx/PortableMag.git
synced 2025-10-29 11:10:08 +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
|
||||
[_] 10% basic features
|
||||
[_] 85% basic article navigation
|
||||
[_] 12% Priority work
|
||||
[_] 0% general todo
|
||||
[_] 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] prev page
|
||||
[X] show previews
|
||||
[_] show global navigation bar
|
||||
[X] go home
|
||||
[X] go to prev article
|
||||
[X] go to next article
|
||||
[_] global navigation bar
|
||||
[_] real previews
|
||||
[X] real previews
|
||||
| use zoom to show a ribbon...
|
||||
[_] 0% issue navigation
|
||||
[_] issue list
|
||||
[_] 0% issue download
|
||||
[_] whole edition dowload and update (primary mode)
|
||||
[_] seporate issue download (secondary)
|
||||
[_] 0% stage 2 - templates and examples
|
||||
[_] 0% default cover templates
|
||||
[_] 0% default page templates
|
||||
| a template is a class and predefined content...
|
||||
@ -42,7 +46,7 @@ Priority work
|
||||
[_] plain
|
||||
[_] 0% default actions
|
||||
[_] show in overlay
|
||||
[_] 0% advanced features
|
||||
[_] 0% stage 3 - advanced features
|
||||
[_] 0% edition editor / publisher
|
||||
[_] create/delete edition
|
||||
[_] cover
|
||||
|
||||
17
index.html
17
index.html
@ -16,17 +16,7 @@ $(document).ready(function(){
|
||||
|
||||
$('.viewer')
|
||||
.swipe({
|
||||
//swipeLeft: nextPage,
|
||||
//swipeRight: prevPage,
|
||||
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...
|
||||
swipeUp: function(){
|
||||
PAGES_VISIBLE = 6
|
||||
@ -78,13 +68,14 @@ function swipeUpdate(evt, phase, direction, distance){
|
||||
|
||||
} else if ( phase =='end' ) {
|
||||
// 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())
|
||||
|
||||
// prev page...
|
||||
if(direction == 'right') {
|
||||
// prev page...
|
||||
setCurrentPage(Math.max(n-p, 0))
|
||||
// next page...
|
||||
} else if (direction == 'left'){
|
||||
// next page...
|
||||
setCurrentPage(Math.min(n+p, pages.length-1))
|
||||
}
|
||||
}
|
||||
@ -150,6 +141,7 @@ function prevPage(){
|
||||
}
|
||||
|
||||
|
||||
|
||||
function goToMagazineCover(){
|
||||
setCurrentPage(0)
|
||||
}
|
||||
@ -158,6 +150,7 @@ function goToArticleCover(){
|
||||
}
|
||||
|
||||
|
||||
|
||||
function nextArticle(){
|
||||
var cur = $('.current.page').parents('.article')
|
||||
// we are at the magazine cover cover...
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user