mirror of
https://github.com/flynx/PortableMag.git
synced 2026-01-04 17:51:28 +00:00
added basic platform detection and platform specific settings...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
232576b158
commit
421210f103
@ -24,6 +24,7 @@ XXX scrollTo is a cool and a powerfull tool but it needs a sustantial code reorg
|
|||||||
<!--script src="editor.js"></script-->
|
<!--script src="editor.js"></script-->
|
||||||
|
|
||||||
<!-- configuration, keep this last... -->
|
<!-- configuration, keep this last... -->
|
||||||
|
<script src="platform.js"></script>
|
||||||
<script src="keybindings.js"></script>
|
<script src="keybindings.js"></script>
|
||||||
<script src="config.js"></script>
|
<script src="config.js"></script>
|
||||||
|
|
||||||
@ -703,6 +704,13 @@ $(document).ready(function(){
|
|||||||
<td id="BrowserInfo">
|
<td id="BrowserInfo">
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
User Agent:
|
||||||
|
</td>
|
||||||
|
<td id="UserAgent">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<table/>
|
<table/>
|
||||||
|
|
||||||
|
|
||||||
@ -760,6 +768,7 @@ $(document).ready(function(){
|
|||||||
$('#FingersSupported').text($.fn.swipe.fingers.ALL)
|
$('#FingersSupported').text($.fn.swipe.fingers.ALL)
|
||||||
var b = $('#BrowserInfo')
|
var b = $('#BrowserInfo')
|
||||||
$.each($.browser, function(i, e){$('<div>'+i+': '+e+'</div>').appendTo(b)})
|
$.each($.browser, function(i, e){$('<div>'+i+': '+e+'</div>').appendTo(b)})
|
||||||
|
$('#UserAgent').text(navigator.userAgent)
|
||||||
}
|
}
|
||||||
function toggleSetting(obj){
|
function toggleSetting(obj){
|
||||||
obj = $(obj)
|
obj = $(obj)
|
||||||
|
|||||||
7
platform.js
Executable file
7
platform.js
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
// PhoneGap...
|
||||||
|
if(navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry)/)){
|
||||||
|
UPDATE_HASH_URL_POSITION = false
|
||||||
|
FULL_HISTORY_ENABLED = false
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user