From 189cfe46662ccaadece541e67611b1b83bd29a07 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 22 Feb 2013 20:40:18 +0400 Subject: [PATCH] resize test... Signed-off-by: Alex A. Naanou --- index2.html | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/index2.html b/index2.html index 8aac6c0..c5624b1 100755 --- a/index2.html +++ b/index2.html @@ -125,6 +125,21 @@ $(document).ready(function(){ .on('swipeRight', handleSwipeRight) .on('screenReleased', handleScrollRelease) + // try a way of cheating... + var w = $('.viewer').width() + var h = $('.viewer').height() + $('.content').each(function(_, e){ + var e = $(e) + var ew = e.width() + var eh = e.height() + var ratio = ew/eh + e.height(h) + e.width(ratio * h) + }) + $('.magazine').css({ + 'margin-top': -h/2, + height: h, + }) // XXX stub... setTransitionEasing($('.magazine'), 'ease-out') @@ -151,7 +166,7 @@ $(document).ready(function(){ - + PortableMag cover @@ -178,8 +193,8 @@ $(document).ready(function(){
-
-

The Basics...

+
+

The Basics...

Main features