This repository was archived by the owner on May 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.html
More file actions
62 lines (51 loc) · 2.53 KB
/
Copy pathindex.html
File metadata and controls
62 lines (51 loc) · 2.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<html>
<head>
<script src="phonegap.js" type="text/javascript" charset="utf-8"></script>
<script src="js/jquery-1.10.2.min.js" ></script>
<script>
function onBackKeyDown() {
'use strict';
var frame = window.frames[0].window;
if(frame.bCurrentLocationIsHome == true) {
navigator.app.exitApp();
} else {
frame.location.reload();
}
return false;
}
var onDeviceReady = function() {
'use strict';
setDeviceInfo();
document.addEventListener("backbutton", onBackKeyDown, false);
}
function onLoad() {
'use strict';
if (typeof navigator.device == 'undefined' && window.location.host != '127.0.0.1'){
document.addEventListener("deviceready", onDeviceReady, false);
} else {
onDeviceReady();
}
}
function setDeviceInfo() {
pgDeviceInfo = '';
if (window.location.host != '127.0.0.1'){
pgDeviceInfo += '<p><b>device.name: </b>' + device.name + '</p>';
pgDeviceInfo += '<p><b>device.model: </b>' + device.model + '</p>';
pgDeviceInfo += '<p><b>device.cordova: </b>' + device.cordova + '</p>';
pgDeviceInfo += '<p><b>device.phonegap: </b>' + device.phonegap + '</p>';
pgDeviceInfo += '<p><b>device.platform: </b>' + device.platform + '</p>';
pgDeviceInfo += '<p><b>device.uuid: </b>' + device.uuid + '</p>';
pgDeviceInfo += '<p><b>device.version: </b>' + device.version + '</p>';
} else {
pgDeviceInfo += '<p><i>no data - not native app!! </i></p>';
}
var frame = window.frames[0].window;
frame.pgDeviceInfo = pgDeviceInfo;
}
</script>
</head>
<body onload="onLoad();" style="margin:0;">
<!--<iframe id="iframe" src="remote/remote.php" width="100%" height="100%" frameborder="0" border="0" cellspacing="0" style="background:#fff;"></iframe>-->
<iframe id="iframe" src="http://clients.digitalmarmalade.co.uk/github/iframe/remote.php" width="100%" height="100%" frameborder="0" border="0" cellspacing="0" style="background:#fff;"></iframe>
</body>
</html>