mirror of
https://github.com/flynx/PortableMag.git
synced 2025-11-02 21:10:11 +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()
|
||||
|
||||
//setCurrentPage(0)
|
||||
limit_scroll()
|
||||
//limit_scroll()
|
||||
})
|
||||
|
||||
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...
|
||||
function limit_scroll(){
|
||||
var W = $('.viewer').width()
|
||||
@ -181,8 +186,6 @@ function clear_limits(){
|
||||
|
||||
<div class="viewer">
|
||||
|
||||
<div class='scroller'>
|
||||
|
||||
<div class="magazine" name="PortableMag">
|
||||
<div class="cover page">
|
||||
<div class="content">
|
||||
@ -545,8 +548,6 @@ function clear_limits(){
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<!-- vim:set ts=4 sw=4 nowrap : -->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user