-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
102 lines (82 loc) · 3.6 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html>
<html>
<head>
<title>Tic Tac Toe</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Do not add `link` tags-->
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<link href="https://fonts.googleapis.com/css?family=Finger+Paint" rel="stylesheet">
<script src="./assets/scripts/index.js"></script>
<!-- Do not add `script` tags-->
<link rel="stylesheet" href="./assets/styles/style.css">
<script src="public/vendor.js" type="text/javascript" charset="utf-8" defer></script>
<script src="public/application.js" type="text/javascript" charset="utf-8" defer></script>
</head>
<body onload="startGame()">
<div id="game">
<div id="title">Tic-Tac-Toe</div>
<table style="width:500px">
<tr>
<td class="box" id="square1" onclick='playerMove(this)' data-cell-index="0"></td>
<td class="box" id="square2" onclick='playerMove(this)' data-cell-index="1"></td>
<td class="box" id="square3" onclick='playerMove(this)' data-cell-index="2"></td>
</tr>
<tr>
<td class="box" id="square4" onclick='playerMove(this)' data-cell-index="3"></td>
<td class="box" id="square5" onclick='playerMove(this)' data-cell-index="4"></td>
<td class="box" id="square6" onclick='playerMove(this)' data-cell-index="5"></td>
</tr>
<tr>
<td class="box" id="square7" onclick='playerMove(this)' data-cell-index="6"></td>
<td class="box" id="square8" onclick='playerMove(this)' data-cell-index="7"></td>
<td class="box" id="square9" onclick='playerMove(this)' data-cell-index="8"></td>
</tr>
</table>
<div id="text"> </div>
</div>
<button id="restart" style="display: none;" onclick="startGame()">New Game</button>
<form id="sign-up" class="signup">
<fieldset>
<legend>Sign up!</legend>
<input type="text" name="credentials[email]" placeholder="Email">
<input type="password" name="credentials[password]" placeholder="Password">
<input type="password" name="credentials[password_confirmation]" placeholder="Password_confirmation">
<input type="submit" value="Sign up!">
</fieldset>
</form>
<button id="login" onclick="loadSignIn()">Sign In</button>
<form id="sign-in" class="border">
<fieldset>
<legend>Sign in!</legend>
<input type="text" name="credentials[email]" placeholder="Email">
<input type="password" name="credentials[password]" placeholder="Password">
<input type="submit" value="Sign in!">
</fieldset>
</form>
<form id="change-password" class="border">
<fieldset>
<legend>Change Password!</legend>
<input type="password" name="passwords[old]" placeholder="old password">
<input type="password" name="passwords[new]" placeholder="new password">
<input type="submit" value="Change Password">
</fieldset>
</form>
<form id="sign-out" class="border">
<fieldset>
<legend>Sign Out</legend>
<input type="submit" value="Sign Out">
</fieldset>
</form>
<div id="game-history" style="display: none;">
<table id="game-info">
<tr>
<th>Game ID</th>
<th>Over?</th>
</tr>
<tr >
</tr>
</table>
</div>
<button id="getgame" style="display: none;">Show Games</button>
</body>
</html>