-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
73 lines (50 loc) · 1.68 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Test PhoneGap</title>
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<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>
<script type="text/javascript">
$(document).bind("pagebeforeshow", function (event, data) {
if (!localStorage.getItem("LoggedInUser")) {
event.preventDefault();
$.mobile.changePage("login.html");
}
else {
if (!localStorage.getItem("CheckedInFlight")) {
event.preventDefault();
$.mobile.changePage("checkin.html");
}
else {
$.mobile.changePage("main.html");
}
}
});
</script>
</head>
<body>
<!-- ################################### BEGIN MAIN PAGE ######################################## -->
<div data-role="page" id="index" data-theme="c">
<!-- BEGIN HEADER -->
<div id="header" data-role="header" data-position="fixed" data-theme="c">
<h1>I Hate Flight Delays</h1>
</div>
<!-- END HEADER -->
<!-- BEGIN CONTENT -->
<div data-role="content">
</div>
<!-- END CONTENT -->
<!-- BEGIN FOOTER -->
<div data-role="footer" data-position="fixed" style="height: 50px; vertical-align:middle">
<p align="center"><a href="index.html" data-role="button" rel="external">Home</a></p>
<!-- END FOOTER -->
</div>
<!-- ##################################### END MAIN PAGE ######################################### -->
</body>
</html>