mirror of
https://github.com/flynx/PortableMag.git
synced 2025-12-17 17:11:47 +00:00
minor changes and tweeks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
3929789acc
commit
66deda6eb0
11
index.html
11
index.html
@ -97,9 +97,12 @@ $(document).ready(function(){
|
|||||||
//fingers: $.fn.swipe.fingers.THREE
|
//fingers: $.fn.swipe.fingers.THREE
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
// load state and setup everything that depends on it...
|
||||||
loadState()
|
loadState()
|
||||||
setupNavigator()
|
setupNavigator()
|
||||||
|
|
||||||
|
// set default view...
|
||||||
togglePageView('on')
|
togglePageView('on')
|
||||||
|
|
||||||
// hide the splash screen...
|
// hide the splash screen...
|
||||||
@ -431,6 +434,8 @@ $(document).ready(function(){
|
|||||||
.settings button {
|
.settings button {
|
||||||
border: solid gray 1px;
|
border: solid gray 1px;
|
||||||
cursor: hand;
|
cursor: hand;
|
||||||
|
padding-top: 3px;
|
||||||
|
padding-bottom: 3px;
|
||||||
padding-left: 15px;
|
padding-left: 15px;
|
||||||
padding-right: 15px;
|
padding-right: 15px;
|
||||||
}
|
}
|
||||||
@ -443,8 +448,8 @@ $(document).ready(function(){
|
|||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<input id="PAGES_IN_RIBBON" type="text" size="8" style="text-align:center" disabled>
|
<input id="PAGES_IN_RIBBON" type="text" size="8" style="text-align:center" disabled>
|
||||||
<button onclick="$('#PAGES_IN_RIBBON').attr('value', parseInt($('#PAGES_IN_RIBBON').attr('value'))+1); saveSettings()">+</button>
|
<button onclick="$('#PAGES_IN_RIBBON').attr('value', parseFloat($('#PAGES_IN_RIBBON').attr('value'))+0.5); saveSettings()">+</button>
|
||||||
<button onclick="$('#PAGES_IN_RIBBON').attr('value', parseInt($('#PAGES_IN_RIBBON').attr('value'))-1); saveSettings()">-</button>
|
<button onclick="$('#PAGES_IN_RIBBON').attr('value', parseFloat($('#PAGES_IN_RIBBON').attr('value'))-0.5); saveSettings()">-</button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@ -517,7 +522,7 @@ $(document).ready(function(){
|
|||||||
toggleViewerAnimation('on')
|
toggleViewerAnimation('on')
|
||||||
|
|
||||||
function saveSettings(){
|
function saveSettings(){
|
||||||
var v = parseInt($('#PAGES_IN_RIBBON').attr('value'))
|
var v = parseFloat($('#PAGES_IN_RIBBON').attr('value'))
|
||||||
// ignore bad values...
|
// ignore bad values...
|
||||||
v = v == null ? PAGES_IN_RIBBON : v
|
v = v == null ? PAGES_IN_RIBBON : v
|
||||||
// can't be less that 1...
|
// can't be less that 1...
|
||||||
|
|||||||
@ -7,7 +7,9 @@
|
|||||||
//var DEBUG = DEBUG != null ? DEBUG : true
|
//var DEBUG = DEBUG != null ? DEBUG : true
|
||||||
|
|
||||||
// number of pages to display in ribbon...
|
// number of pages to display in ribbon...
|
||||||
var PAGES_IN_RIBBON = 6
|
// NOTE: it is best to keep this odd-ish, so as to give the user the
|
||||||
|
// impession of pages continuing off-screen...
|
||||||
|
var PAGES_IN_RIBBON = 4.0
|
||||||
|
|
||||||
// if true, expand a page to fit the whole view in single page mode...
|
// if true, expand a page to fit the whole view in single page mode...
|
||||||
var FIT_PAGE_TO_VIEW = true
|
var FIT_PAGE_TO_VIEW = true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user