From 3f5aa0b98aa47ae030f43dd5f580e450de104baa Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 25 Jan 2013 10:09:58 +0400 Subject: [PATCH] minor touchups... Signed-off-by: Alex A. Naanou --- index.html | 2 +- magazine.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 988b7cd..61ce5e5 100755 --- a/index.html +++ b/index.html @@ -73,7 +73,7 @@ $(document).ready(function(){ return true }, - excludedElements: '.noSwipe', + //excludedElements: '.noSwipe', fingers: $.fn.swipe.fingers.ALL }) diff --git a/magazine.js b/magazine.js index 93e02ec..d6453d9 100755 --- a/magazine.js +++ b/magazine.js @@ -32,6 +32,7 @@ togglePageView = createCSSClassToggler( } }) + function getPageScale(){ return getElementScale($('.scaler')) } @@ -58,7 +59,6 @@ function fitNPages(n, fit_to_content){ var scale = getPageScale() if(fit_to_content){ - // resulting page width... page.width(cW) page.height(cH) if(W/H > (cW*n)/cH){ @@ -66,6 +66,7 @@ function fitNPages(n, fit_to_content){ } else { scale = W/(cW*n) } + // resulting page width... var rW = cW } else { // need to calc width only... @@ -220,7 +221,6 @@ function nextArticle(){ .first()) } -// XXX this is almost exactly the same as nextArticle... function prevArticle(){ var cur = $('.current.page').parents('.article') // we are at the magazine cover...