mirror of
https://github.com/flynx/PortableMag.git
synced 2025-12-21 11:01:48 +00:00
more tweeks, still dancing, but now there is hope...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
577a4292cd
commit
bcfcb2c0d3
11
layout.html
11
layout.html
@ -147,11 +147,16 @@ $(document).ready(function(){
|
|||||||
runMagazineTemplates()
|
runMagazineTemplates()
|
||||||
|
|
||||||
//setCurrentPage(0)
|
//setCurrentPage(0)
|
||||||
limit_scroll()
|
//limit_scroll()
|
||||||
})
|
})
|
||||||
|
|
||||||
var SCROLL_LIMIT = 800 * 1.5
|
var SCROLL_LIMIT = 800 * 1.5
|
||||||
|
|
||||||
|
function setup_scroll_limiter(){
|
||||||
|
$('.magazine').wrapAll($('<div class="scroller">'))
|
||||||
|
limit_scroll()
|
||||||
|
}
|
||||||
|
|
||||||
// XXX set the limit to next/prev page alignment...
|
// XXX set the limit to next/prev page alignment...
|
||||||
function limit_scroll(){
|
function limit_scroll(){
|
||||||
var W = $('.viewer').width()
|
var W = $('.viewer').width()
|
||||||
@ -181,8 +186,6 @@ function clear_limits(){
|
|||||||
|
|
||||||
<div class="viewer">
|
<div class="viewer">
|
||||||
|
|
||||||
<div class='scroller'>
|
|
||||||
|
|
||||||
<div class="magazine" name="PortableMag">
|
<div class="magazine" name="PortableMag">
|
||||||
<div class="cover page">
|
<div class="cover page">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
@ -545,8 +548,6 @@ function clear_limits(){
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
<!-- vim:set ts=4 sw=4 nowrap : -->
|
<!-- vim:set ts=4 sw=4 nowrap : -->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user