-
Notifications
You must be signed in to change notification settings - Fork 0
/
flight-details.html
98 lines (74 loc) · 2.49 KB
/
flight-details.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Test PhoneGap</title>
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width">
<link rel="stylesheet" href="css/jquery.mobile-1.2.0.css" />
<link rel="stylesheet" href="css/style.css" />
<script src="js/jquery-1.8.2.min.js"></script>
<script src="js/jquery.mobile-1.2.0.min.js"></script>
<script src="js/cordova-2.1.0.js"></script>
</head>
<body>
<script>
function onSuccess(data, status)
{
data = $.trim(data);
$("#notification").text(data);
}
function onError(data, status)
{
// handle an error
}
$(document).ready(function() {
$("#submit").click(function(){
var formData = $("#callAjaxForm").serialize();
$.ajax({
type: "POST",
url: "http://ihateflightdelays.co.cc/app/callajax.php",
cache: false,
data: formData,
success: onSuccess,
error: onError
});
return false;
});
});
</script>
<!-- ################################### BEGIN MAIN PAGE ######################################## -->
<div data-role="page" id="list_page" data-theme="c">
<!-- BEGIN HEADER -->
<div id="header" data-role="header" data-position="fixed" data-theme="c">
I Hate Flight Delays <br>
<h1>Flight details for PX 1234</h1>
</div>
<!-- END HEADER -->
<!-- BEGIN CONTENT -->
<div data-role="content">
<form id="callAjaxForm">
<!-- <div data-role="fieldcontain"> /-->
<div data-role="content">
<h2 style="padding: 0.1em 0;">Flight details:</h2>
<ul data-role="listview" data-inset="true">
<li>Expected departure time</li>
<li>Expected arrival time</li>
<li>Origin</li>
<li>Destination</li>
</ul>
<br />
<h3 id="notification"></h3>
<button data-theme="b" id="submit" type="submit">Complain</button>
<button data-theme="b" id="submit" type="submit">Socialize</button>
</div>
</form>
</div>
<!-- END CONTENT -->
<!-- BEGIN FOOTER -->
<div data-role="footer" data-position="fixed" style="height: 50px; vertical-align:middle">
THIS IS FOOTER
<!-- END FOOTER -->
</div>
<!-- ##################################### END MAIN PAGE ######################################### -->
</body>
</html>