-
Notifications
You must be signed in to change notification settings - Fork 0
/
flight-history.html
93 lines (70 loc) · 2.38 KB
/
flight-history.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
<!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>Historical data for flight ABC 1234</h1>
</div>
<!-- END HEADER -->
<!-- BEGIN CONTENT -->
<div data-role="content">
<form id="callAjaxForm">
<div data-role="content">
<h2 style="padding: 0.1em 0;">This flight has had these complaints in the past:</h2>
<ul data-role="listview" data-inset="true">
<li>Complaint 1: people shitting on the plane</li>
<li>Complaint 2: delayed for 4 hours</li>
<li>Complaint 3: stuck in airplane for 3 hours</li>
<li>Complaint 4: rude stewardess</li>
</ul>
<br />
</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>