mirror of
https://github.com/flynx/PortableMag.git
synced 2025-12-23 03:51:52 +00:00
minor edit...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
2b790e7fd3
commit
76323cb620
16
index.html
16
index.html
@ -8,6 +8,8 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
var DEBUG = true
|
||||||
|
|
||||||
var USE_URLS = true
|
var USE_URLS = true
|
||||||
|
|
||||||
/* this is needed only for live resize... */
|
/* this is needed only for live resize... */
|
||||||
@ -512,6 +514,14 @@ function createPage(article, template){
|
|||||||
<script>
|
<script>
|
||||||
|
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
|
||||||
|
if(DEBUG){
|
||||||
|
$('.splash').click(function(){
|
||||||
|
$('.splash').fadeOut()
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$(window)
|
$(window)
|
||||||
.resize(function() {
|
.resize(function() {
|
||||||
fitNPages(PAGES_VISIBLE)
|
fitNPages(PAGES_VISIBLE)
|
||||||
@ -548,12 +558,6 @@ $(document).ready(function(){
|
|||||||
$('.button.next-article').swipe({click: nextArticle})
|
$('.button.next-article').swipe({click: nextArticle})
|
||||||
$('.button.prev-article').swipe({click: prevArticle})
|
$('.button.prev-article').swipe({click: prevArticle})
|
||||||
|
|
||||||
// XXX STUB: for device debugging reasons...
|
|
||||||
$('.splash').click(function(){
|
|
||||||
$('.splash').fadeOut()
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
loadState()
|
loadState()
|
||||||
|
|
||||||
togglePageView('on')
|
togglePageView('on')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user