From 8b89de93c80d4ce137105577197b507a5004a3e3 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 21 Jan 2013 07:29:30 +0400 Subject: [PATCH] cleanup and updated todo... Signed-off-by: Alex A. Naanou --- TODO.otl | 18 +++++++++++------- index.html | 17 +++++------------ 2 files changed, 16 insertions(+), 19 deletions(-) diff --git a/TODO.otl b/TODO.otl index c678d3a..9559976 100755 --- a/TODO.otl +++ b/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 diff --git a/index.html b/index.html index 29fa75e..ab72fe9 100755 --- a/index.html +++ b/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...