forked from hardeep/PhoneGap-Build-Debug
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindexCorrect.index
54 lines (48 loc) · 1.47 KB
/
indexCorrect.index
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
<html>
<head>
<link rel="stylesheet" href="jquery.mobile.1.0a1.min.css" />
<script src="jquery.1.4.3.min.js"></script>
<script src="jquery.mobile.1.0a1.min.js"></script>
<script type="text/javascript" src="phonegap.js"></script>
<script>
function onLoad()
{
document.addEventListener('deviceready', onDeviceReady, false);
}
function onDeviceReady()
{
// do nothing
console.log('Device is now ready');
}
var checkBugs = function()
{
navigator.notification.alert('Ya! No more bugs', null, 'Notification');
}
$(document).ready(function()
{
$('#bug_button').click(function()
{
checkBugs();
});
});
</script>
<style type="text/css">
.ui-header, .ui-title
{
margin-left: 0px !important;
margin-right: 0px !important;
}
</style>
</head>
<body onload="onLoad()">
<div data-role="page">
<div data-role="header">
<h1>Hello Debugging World</h1>
</div>
<div data-role="content">
<input type="button" id="bug_button" value="Check For Bugs">
</div>
</div>
</div>
</body>
</html>