mirror of
https://github.com/flynx/PortableMag.git
synced 2025-11-04 14:00:13 +00:00
minor touchups...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
e8c56dbd66
commit
3f5aa0b98a
@ -73,7 +73,7 @@ $(document).ready(function(){
|
|||||||
return true
|
return true
|
||||||
},
|
},
|
||||||
|
|
||||||
excludedElements: '.noSwipe',
|
//excludedElements: '.noSwipe',
|
||||||
fingers: $.fn.swipe.fingers.ALL
|
fingers: $.fn.swipe.fingers.ALL
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@ -32,6 +32,7 @@ togglePageView = createCSSClassToggler(
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
function getPageScale(){
|
function getPageScale(){
|
||||||
return getElementScale($('.scaler'))
|
return getElementScale($('.scaler'))
|
||||||
}
|
}
|
||||||
@ -58,7 +59,6 @@ function fitNPages(n, fit_to_content){
|
|||||||
var scale = getPageScale()
|
var scale = getPageScale()
|
||||||
|
|
||||||
if(fit_to_content){
|
if(fit_to_content){
|
||||||
// resulting page width...
|
|
||||||
page.width(cW)
|
page.width(cW)
|
||||||
page.height(cH)
|
page.height(cH)
|
||||||
if(W/H > (cW*n)/cH){
|
if(W/H > (cW*n)/cH){
|
||||||
@ -66,6 +66,7 @@ function fitNPages(n, fit_to_content){
|
|||||||
} else {
|
} else {
|
||||||
scale = W/(cW*n)
|
scale = W/(cW*n)
|
||||||
}
|
}
|
||||||
|
// resulting page width...
|
||||||
var rW = cW
|
var rW = cW
|
||||||
} else {
|
} else {
|
||||||
// need to calc width only...
|
// need to calc width only...
|
||||||
@ -220,7 +221,6 @@ function nextArticle(){
|
|||||||
.first())
|
.first())
|
||||||
|
|
||||||
}
|
}
|
||||||
// XXX this is almost exactly the same as nextArticle...
|
|
||||||
function prevArticle(){
|
function prevArticle(){
|
||||||
var cur = $('.current.page').parents('.article')
|
var cur = $('.current.page').parents('.article')
|
||||||
// we are at the magazine cover...
|
// we are at the magazine cover...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user