-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugins-appinfos.html
executable file
·42 lines (32 loc) · 1.29 KB
/
plugins-appinfos.html
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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport"
content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"/>
<link rel="stylesheet" type="text/css" href="css/styles.css"/>
</head>
<body class="theme_green">
<div class="block">
<p>Your app infos should appears in the space bellow. If not, check if you have correctly installed the plugin or
look at your device logs for any clues.</p>
</div>
<div class="block" style="max-width:100%; overflow:scroll;">
<p>Your app infos are: <b id="locationField" style="border:1px solid #ccc; padding:5px; ">[waiting for
plugin...]</b></p>
</div>
<script type="text/javascript" src="js/zepto.min.js"></script>
<script type="text/javascript" src="js/Cobalt-Web/cobalt.js"></script>
<script type="text/javascript" src="js/Plugins-AppInfos-Web/cobalt.appInfos.js"></script>
<script type="text/javascript" src="js/app.js"></script>
<script>
Zepto(function($) {
cobalt.init();
cobalt.getAppInfos(function(infos) {
document.getElementById('locationField').innerHTML = '<pre>' + JSON.stringify(infos, null, 2) + '</pre>';
});
app.initPage('AppInfos Plugin');
});
</script>
</body>
</html>