From 66deda6eb06885a2c334de085289057b40aeec53 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Tue, 29 Jan 2013 20:45:16 +0400 Subject: [PATCH] minor changes and tweeks... Signed-off-by: Alex A. Naanou --- index.html | 11 ++++++++--- magazine.js | 4 +++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 8c8d36b..7fd9041 100755 --- a/index.html +++ b/index.html @@ -97,9 +97,12 @@ $(document).ready(function(){ //fingers: $.fn.swipe.fingers.THREE }) + + // load state and setup everything that depends on it... loadState() setupNavigator() + // set default view... togglePageView('on') // hide the splash screen... @@ -431,6 +434,8 @@ $(document).ready(function(){ .settings button { border: solid gray 1px; cursor: hand; + padding-top: 3px; + padding-bottom: 3px; padding-left: 15px; padding-right: 15px; } @@ -443,8 +448,8 @@ $(document).ready(function(){ - - + + @@ -517,7 +522,7 @@ $(document).ready(function(){ toggleViewerAnimation('on') function saveSettings(){ - var v = parseInt($('#PAGES_IN_RIBBON').attr('value')) + var v = parseFloat($('#PAGES_IN_RIBBON').attr('value')) // ignore bad values... v = v == null ? PAGES_IN_RIBBON : v // can't be less that 1... diff --git a/magazine.js b/magazine.js index 0a0a943..a485d24 100755 --- a/magazine.js +++ b/magazine.js @@ -7,7 +7,9 @@ //var DEBUG = DEBUG != null ? DEBUG : true // number of pages to display in ribbon... -var PAGES_IN_RIBBON = 6 +// NOTE: it is best to keep this odd-ish, so as to give the user the +// impession of pages continuing off-screen... +var PAGES_IN_RIBBON = 4.0 // if true, expand a page to fit the whole view in single page mode... var FIT_PAGE_TO_VIEW = true