From 26ff9a5feef71fd1ed0475a1c95a92a66c461bd4 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 27 Jan 2013 23:18:27 +0400 Subject: [PATCH] updated todo and several minor edits and preparatoins for later work... Signed-off-by: Alex A. Naanou --- TODO.otl | 31 +++++++++++++++++-------------- index.html | 2 -- magazine.js | 14 ++++++++++++-- 3 files changed, 29 insertions(+), 18 deletions(-) diff --git a/TODO.otl b/TODO.otl index ee0964f..d92e585 100755 --- a/TODO.otl +++ b/TODO.otl @@ -1,31 +1,27 @@ -[_] 31% Priority work +[_] 34% Priority work [_] 0% TouchSwipe issues... [_] BUG: swipe-back does not cancel a swipe... (TouchSwipe) | ...unless the finger is return to within the threshold of the | touchdown point. [_] BUG: no drag threshold on excludedElements (TouchSwipe) | stalled... - [_] 62% general todo + [_] 80% general todo [_] magazine loader and data format... - [_] make layer default state configurable... - | e.g. setting "shown"/"hidden" classes in HTML and adding - | something like a page reset that will restore the default state, - | rather than the current "hideLayers" + | this is simple, just use a restyled magazine viewer... [_] 0% populate an example issue [_] template photo page [_] template 3x3 grid [_] template two column text - [_] time transitions - | the goal is for slow devices to seem not to have animations at - | all and faster ones to seem to have fast animations... - [_] vanquish opacity effects - | they slow everything down considerably! - [_] make pages of different formats work... - [_] add keyboard navigation... - [_] find a passive CSS-only way to size pages in different modes... [_] BUG: href to existing anchors will mess up layout... | need to find out how can we disable anchor links from actually | going to the anchor... + [_] make layer default state configurable... + | e.g. setting "shown"/"hidden" classes in HTML and adding + | something like a page reset that will restore the default state, + | rather than the current "hideLayers" + [X] vanquish opacity effects + | they slow everything down considerably! + [X] add keyboard navigation... [X] navigator -- indicate position in thumbnail mode... [X] test for stability [X] cleanup code @@ -166,6 +162,13 @@ [_] image [_] text +[_] % Low priority todo + [_] make pages of different formats work... + [_] find a passive CSS-only way to size pages in different modes... + [_] time transitions + | the goal is for slow devices to seem not to have animations at + | all and faster ones to seem to have fast animations... + diff --git a/index.html b/index.html index f862b25..c760aa3 100755 --- a/index.html +++ b/index.html @@ -29,7 +29,6 @@ $(document).ready(function(){ }) } - $(window) .resize(viewResizeHandler) .bind('hashchange', hashChangeHandler) @@ -37,7 +36,6 @@ $(document).ready(function(){ $(document) .keydown(makeKeyboardHandler(keybindings)) - $('.viewer') .swipe({ swipeStatus: swipeHandler, diff --git a/magazine.js b/magazine.js index 5b3fa51..15f549d 100755 --- a/magazine.js +++ b/magazine.js @@ -102,13 +102,11 @@ function viewResizeHandler(){ console.log('>>> Page Zoom:', document.width/$(document).width()) } */ - //$('.splash').show() if(ANIMATE_WINDOW_RESIZE){ updateView() } else { unanimated($('.scaler'), updateView, 30)() } - //$('.splash').fadeOut() } @@ -446,6 +444,18 @@ function saveStorageState(){ } +// JSON format state managers... +function loadJSONState(data){ + // XXX +} +function buildJSONState(){ + // XXX +} +function dumpJSONState(){ + // XXX +} + + // generic state managers... function loadState(){ var n = loadURLState()