-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
59 lines (52 loc) · 2.07 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
<!DOCTYPE html>
<!--
This file is part of Booking App.
Booking App is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Booking App is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Booking App. If not, see <http://www.gnu.org/licenses/>.
-->
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8" />
<script src="https://code.jquery.com/jquery-1.9.1.js"></script>
<script src="js-cookie.js"></script>
<script src="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
<link rel="stylesheet" href="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" />
</head>
<body>
<div data-role="page" id="index">
<script>
$(document).ready(function() {
if (Cookies.get("token") && Cookies.get("user")) {
$("#login").text("Log out");
$("#login").attr("href","logout.html");
}
//$("#status").html("Logged in. You may <a href='logout.html'>log out</a>");
else {
$("#login").text("Log in");
$("#login").attr("href","login.html");
$("#bookings").addClass('ui-disabled');
}
//$("#status").html("Not logged in. You may <a href='login.html'>log in</a> or <a href='register.html'>register</a>.");
});
</script>
<div data-role="header">
<h1>Booking System</h1>
<a id="login" href=""></a>
</div>
<div id="status"></div>
<ul data-role="listview">
<li><a id="events" data-ajax="false" href="events.html">Events</a></li>
<li><a id="bookings" data-ajax="false" href="bookings.html">Bookings</a></li>
</ul>
</div>
</body>
</html>