-
Notifications
You must be signed in to change notification settings - Fork 32
/
index.html
75 lines (60 loc) · 2.11 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
74
75
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Chess 0</title>
<!-- Including the chessboardjs files:-->
<!-- <script src="chess.js"></script> -->
<link rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO"
crossorigin="anonymous">
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"
integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/chess.js/0.10.2/chess.js"></script>
<script src="./chessboard/js/chessboard-0.3.0.min.js"></script>
<link rel="stylesheet" href="./chessboard/css/chessboard-0.3.0.min.css">
<style>
.number::-webkit-inner-spin-button,
.number::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
#roomNumbers{
margin: 7px;
}
body{
margin: 4%
}
</style>
</head>
<body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.1.1/socket.io.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<!-- <script src="./index.js"></script> -->
<!-- <script>
var socket = io();
</script> -->
<div class="container">
<div id="board" style="width: 500px; margin: auto"></div>
<div style="margin: auto"">
<div id="player"></div>
<div id="roomNumbers">Enter a room number between 0 and 99</div>
<form>
<div class="row">
<div class="col">
<input type="number" id="room" min="0" max="99"
class="form-control form-control-md number">
</div>
<div class="col">
<button id="button" class="btn btn-success" onclick="connect()">Connect</button>
</div>
</div>
</form>
<div id="state">Join Game</div>
</div>
</div>
<script src="./game.js"></script>
</body>
</html>