mirror of
https://github.com/flynx/PortableMag.git
synced 2025-12-24 12:22:03 +00:00
added a 'real size' option for testing on devices...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
75fc87fa94
commit
79a914dde9
@ -352,6 +352,9 @@ $(document).ready(function(){
|
|||||||
<div>
|
<div>
|
||||||
Drag in full page view: <button id="DRAG_FULL_PAGE" onclick="toggleSetting(this)"></button>
|
Drag in full page view: <button id="DRAG_FULL_PAGE" onclick="toggleSetting(this)"></button>
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
Enable different size pages: <button id="_USE_REAL_SIZES" onclick="toggleSetting(this)"></button>
|
||||||
|
</div>
|
||||||
<p>
|
<p>
|
||||||
NOTE: this is not an actual configuration page, just a live demo
|
NOTE: this is not an actual configuration page, just a live demo
|
||||||
of some of the available configuration option effects.
|
of some of the available configuration option effects.
|
||||||
@ -369,12 +372,14 @@ $(document).ready(function(){
|
|||||||
FIT_PAGE_TO_VIEW = $('#FIT_PAGE_TO_VIEW').text() == 'true' ? true : false
|
FIT_PAGE_TO_VIEW = $('#FIT_PAGE_TO_VIEW').text() == 'true' ? true : false
|
||||||
ANIMATE_WINDOW_RESIZE = $('#ANIMATE_WINDOW_RESIZE').text() == 'true' ? true : false
|
ANIMATE_WINDOW_RESIZE = $('#ANIMATE_WINDOW_RESIZE').text() == 'true' ? true : false
|
||||||
DRAG_FULL_PAGE = $('#DRAG_FULL_PAGE').text() == 'true' ? true : false
|
DRAG_FULL_PAGE = $('#DRAG_FULL_PAGE').text() == 'true' ? true : false
|
||||||
|
_USE_REAL_SIZES = $('#_USE_REAL_SIZES').text() == 'true' ? true : false
|
||||||
}
|
}
|
||||||
function loadSettings(){
|
function loadSettings(){
|
||||||
$('#PAGES_IN_RIBBON').attr('value', PAGES_IN_RIBBON)
|
$('#PAGES_IN_RIBBON').attr('value', PAGES_IN_RIBBON)
|
||||||
$('#FIT_PAGE_TO_VIEW').text(FIT_PAGE_TO_VIEW)
|
$('#FIT_PAGE_TO_VIEW').text(FIT_PAGE_TO_VIEW)
|
||||||
$('#ANIMATE_WINDOW_RESIZE').text(ANIMATE_WINDOW_RESIZE)
|
$('#ANIMATE_WINDOW_RESIZE').text(ANIMATE_WINDOW_RESIZE)
|
||||||
$('#DRAG_FULL_PAGE').text(DRAG_FULL_PAGE)
|
$('#DRAG_FULL_PAGE').text(DRAG_FULL_PAGE)
|
||||||
|
$('#_USE_REAL_SIZES').text(_USE_REAL_SIZES)
|
||||||
}
|
}
|
||||||
function toggleSetting(obj){
|
function toggleSetting(obj){
|
||||||
obj = $(obj)
|
obj = $(obj)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user