mirror of
https://github.com/flynx/PortableMag.git
synced 2025-10-29 03:00:09 +00:00
minor changes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
ae28d4fed4
commit
534d17394d
24
index.html
24
index.html
@ -92,10 +92,8 @@ $(document).ready(function(){
|
||||
click: function(evt, elem){
|
||||
if($(elem).hasClass('page')){
|
||||
setCurrentPage(elem)
|
||||
//togglePageView('on')
|
||||
} else if($(elem).hasClass('content')){
|
||||
setCurrentPage($(elem).parents('.page').first())
|
||||
//togglePageView('on')
|
||||
}
|
||||
return true
|
||||
},
|
||||
@ -525,6 +523,24 @@ $(document).ready(function(){
|
||||
|
||||
<hr noshade color="silver">
|
||||
|
||||
<table class="settings" width="100%">
|
||||
<tr>
|
||||
<td width="50%">
|
||||
Fingers supported:
|
||||
</td>
|
||||
<td id="FingersSupported">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Browser info:
|
||||
</td>
|
||||
<td id="BrowserInfo">
|
||||
</td>
|
||||
</tr>
|
||||
<table/>
|
||||
|
||||
|
||||
<div style="position:absolute; width:100%; bottom:10px; text-align: right;">
|
||||
<a href="#back">go back</a>, or return to <a href="#home">magazine cover...</a><br>
|
||||
</div>
|
||||
@ -571,6 +587,10 @@ $(document).ready(function(){
|
||||
$('#ANIMATE_WINDOW_RESIZE').text(ANIMATE_WINDOW_RESIZE)
|
||||
$('#DRAG_FULL_PAGE').text(DRAG_FULL_PAGE)
|
||||
$('#USE_REAL_PAGE_SIZES').text(USE_REAL_PAGE_SIZES)
|
||||
|
||||
$('#FingersSupported').text($.fn.swipe.fingers.ALL)
|
||||
var b = $('#BrowserInfo')
|
||||
$.each($.browser, function(i, e){$('<div>'+i+': '+e+'</div>').appendTo(b)})
|
||||
}
|
||||
function toggleSetting(obj){
|
||||
obj = $(obj)
|
||||
|
||||
@ -203,6 +203,7 @@ function swipeHandler(evt, phase, direction, distance, duration, fingers){
|
||||
// - the page will be stretched to viewer (false)
|
||||
// - or to content (true)
|
||||
// XXX on USE_REAL_PAGE_SIZES offset is a bit off...
|
||||
// this is most noticable when going into full page mode...
|
||||
function fitNPages(n, fit_to_content){
|
||||
if(n == null){
|
||||
n = 1
|
||||
@ -418,7 +419,7 @@ function setupBookmarkTouchZones(){
|
||||
var page = $('.page')
|
||||
page.each(function(i, e){
|
||||
$('<div/>')
|
||||
.prependTo(e)
|
||||
.prependTo($(e))
|
||||
.addClass('bookmark-toggler')
|
||||
.attr({
|
||||
title: 'Toggle bookmark (B)'
|
||||
@ -514,7 +515,7 @@ function prevBookmark(){
|
||||
// each magazine edit...
|
||||
|
||||
// XXX make this attach to page instead of it's number number...
|
||||
function _makeArticleIndicator(i, article, width){
|
||||
function makeArticleIndicator(i, article, width){
|
||||
var bar = $('.navigator .bar')
|
||||
var article = $(article)
|
||||
var n = getPageNumber(article.children('.cover').first())
|
||||
@ -538,7 +539,7 @@ function setupArticleIndicators(W){
|
||||
clearArticleIndicators()
|
||||
// set article indicator positions...
|
||||
articles.each(function(i, e){
|
||||
return _makeArticleIndicator(i, e, W)
|
||||
return makeArticleIndicator(i, e, W)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user