-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
115 lines (90 loc) · 3.71 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
103
104
105
106
107
108
109
110
111
112
113
114
115
<!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">
<!-- Do not add `script` tags-->
<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>
<h1>Tic Tac Toe: 3 in a row!</h1>
<p id="message"></p>
<section>
<form id="sign-in-form">
<fieldset>
<legend>Sign in to play!</legend>
<label for="sign-in-email">Email:</label>
<input id="sign-in-email" type="email" name="credentials[email]" placeholder="Email">
<label for="sign-in-password">Password:</label>
<input id="sign-in-password" type="password" name="credentials[password]" placeholder="Password">
<input type="submit" value="Sign in!">
</fieldset>
</form>
</section>
<section>
<form id="sign-up-form">
<fieldset>
<legend>Don't have an account? Sign up!</legend>
<label for"sign-up-email">Email:</label>
<input id="sign-up-email" type="email" name="credentials[email]" placeholder="Email">
<label for"sign-up-password">Password:</label>
<input id="sign-up-password" type="password" name="credentials[password]" placeholder="Password">
<label for="sign-up-password-confirmation">Password Confirmation:</label>
<input id="sign-up-password-confirmation" type="password" name="credentials[password_confirmation]" placeholder="Confirm Password">
<input type="submit" value="Sign up!"
</fieldset>
</form>
</section>
<section>
<form id="change-password-form">
<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>
</section>
<section>
<form id="sign-out">
<fieldset>
<legend>All done playing?</legend>
<label for="sign-out"></label>
<input type="submit" value="Sign-Out!">
</fieldset>
</form>
</section>
<h2>Welcome! Ready to play?</h2>
<section>
<form id="start-new-game">
<label for="start-new-game"></label>
<input type="submit" value="Start New Game!">
</form>
</section>
<section>
<form id="view-games-played">
<legend>See how many games you played</legend>
<button>View Games Played</button>
</form>
</section>
<section class="container">
<form id="game">
<h1>Let's Play!</h1>
<div class="row h-100 board">
<div class="col-4 box" data-cell-index="0"></div>
<div class="col-4 box" data-cell-index="1"></div>
<div class="col-4 box" data-cell-index="2"></div>
<div class="col-4 box" data-cell-index="3"></div>
<div class="col-4 box" data-cell-index="4"></div>
<div class="col-4 box" data-cell-index="5"></div>
<div class="col-4 box" data-cell-index="6"></div>
<div class="col-4 box" data-cell-index="7"></div>
<div class="col-4 box" data-cell-index="8"></div>
</div>
</form>
</section>
</body>
</html>