forked from mumud1/MiningBots-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
54 lines (48 loc) · 2.24 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Mining Bots</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous" />
<link href="styles.css" rel="stylesheet" />
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#">Server Selector</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown"
aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavDropdown">
<ul class="navbar-nav">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button"
data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Select a server
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<!-- Dropdown items will be dynamically populated -->
</div>
</li>
</ul>
</div>
</nav>
<!--Allows the game canvas and a collection of players' bots to be aligned side-by-side horizontally-->
<div style="display: grid; grid-template-columns: auto auto" id="game-info-container">
<!--The drawing of the game-->
<canvas id="gameCanvas"></canvas>
<!--A DIV to hold all the player-bot info-->
<div class="sidebar-container" id="bot-info-megacontainer">
<!--For the purpose of allowing >2 players to be shown, probably best to also dynamically populate this-->
<div class="sidebar" id="bot-sidebar-one"></div>
<div class="sidebar" id="bot-sidebar-two"></div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"></script>
<script src="game.js"></script>
</body>
</html>