-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlobby.html
68 lines (60 loc) · 2.87 KB
/
lobby.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width, user-scalable=no, maximum-scale=1, minimum-scale=1" />
<script src="jquery.min.js"></script>
<script src="loginUtils.js"></script>
<script src="cookieTokenUtils.js"></script>
<script src="navbar.js"></script>
<script src="contextPathResolver.js"></script>
<script type="text/javascript" src="md5.js"></script>
<script type="text/javascript" src="testApiOnline.js"></script>
<script type="text/javascript" src="lobby.js"></script>
<script type="text/javascript" src="asyncGet.js"></script>
<link rel="stylesheet" href="bootstrap.min.css"/>
<link rel="stylesheet" href="lobbyservice.css"/>
</head>
<!--"onload"-script removes API unreachable warning if backend was successfully tested-->
<body onload="anonymousIntercept();timedTokenRenew();setupNavbar('lobby');testApiOnline();prepareLobbyPage()">
<div id=RowDivWithBackground class="container fill bg-white">
<!--dynamic load would be better than static copies over different html files. But it causes issues with the handler mapping (order messed up / unreliable.)-->
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="navbar w-100 order-3">
<!-- content of navbar is filled programmatically , by navbar.js-->
<ul id='nav-ul' class="navbar-nav ml-auto">
</ul>
</div>
</nav>
<!-- white overlay, perfect responsiveness-->
<div class=fillinner>
<!--actual page starts here-->
<br/>
<h1 style="text-align:center" class="title">Lobby</h1>
<title>Lobby</title>
<!--error message that is automatically removed from DOM if server is reachable (testApiOnline.js)-->
<div id='notonline' class="alert alert-danger mt-5 col-md-12 d-none" role="alert">
No connection to server!
</div>
<!--form to register a new user.-->
<!--callback is registered in accounts.js -->
<h3>Create new session</h3>
<div class="form-group mt-3 col-md-12">
<div class="input-group">
<!-- the actual list of options generated by jquery, based on the list offered by the server.-->
<select class="form-control" id="boardgameoptions">
</select>
<span class="input-group-addon"/>
<button type="button" class="btn btn-outline-primary disabled" id="start-session-button">Create</button>
</div>
</div>
<!-- empty table of users that is initialized on page load and refreshed if users are added -->
<br/>
<h3>Available sessions</h3>
<div class="mt-3">
<table class="table table-hover" id="sessiontable"/>
</div>
</div>
</body>
</html>