mirror of
https://github.com/flynx/PortableMag.git
synced 2025-10-30 03:30:09 +00:00
minor edits...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
9d3bc4ffd3
commit
c19ec9428a
10
index.html
10
index.html
@ -15,6 +15,7 @@ $(document).ready(function(){
|
|||||||
})
|
})
|
||||||
|
|
||||||
$('.viewer')
|
$('.viewer')
|
||||||
|
//.click(toggleIndex)
|
||||||
.swipe({
|
.swipe({
|
||||||
swipeLeft: nextPage,
|
swipeLeft: nextPage,
|
||||||
swipeRight: prevPage,
|
swipeRight: prevPage,
|
||||||
@ -72,6 +73,15 @@ function hideIndex(){
|
|||||||
$('.previews').slideUp()
|
$('.previews').slideUp()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function toggleIndex(){
|
||||||
|
if($('.previews').css('display') == 'none'){
|
||||||
|
showIndex()
|
||||||
|
} else {
|
||||||
|
hideIndex()
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user