-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
154 lines (136 loc) · 6.82 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!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 class="container-fluid">
<nav class="navbar navbar-light bg-light">
<span class="navbar-brand">Tic Tac Toe</span>
<form class="form-inline justify-content-end">
<button class="sign-out hidden btn btn-outline-success" type="button">Sign Out</button>
<button class="change-password hidden btn btn-outline-success" data-toggle="modal" data-target="#changePasswordModal" type="button">Change Password</button>
<button class="sign-in btn btn-outline-success" data-toggle="modal" data-target="#signInModal" type="button">Sign In</button>
<button class="sign-up btn btn-outline-success" data-toggle="modal" data-target="#signUpModal" type="button">Sign Up</button>
</form>
</nav>
<main>
<section id="stats-n-stuff">
<p class="auth-alert-main"></p>
<section id="player-turns" class="row">
<div class="col-xs-12">
<p id="player-x" class="player active">Player X: <span id="player-x-email">Anonymous</span></p>
<p class="stats"> <span id="player-x-wins">0</span> Wins, <span id="player-x-draws">0</span> Draws</p>
</div>
<div class="col-xs-12">
<p id="player-o" class="player">Player O: <span id="player-o-email">Anonymous</span></p>
<p class="stats"><span id="player-o-wins">0</span> Wins, <span id="player-o-draws">0</span> Draws</p>
</div>
</section>
<p id="message"></p>
<button type="button" id="rematch-button" class="hidden">Demand a Rematch!</button>
</section>
<section id="surround-game-board">
<section id="game-board">
<div class="row game-row">
<div class="game-cell col-xs-4" id="0"></div>
<div class="game-cell col-xs-4" id="1"></div>
<div class="game-cell col-xs-4" id="2"></div>
</div>
<div class="row game-row">
<div class="game-cell col-xs-4" id="3"></div>
<div class="game-cell col-xs-4" id="4"></div>
<div class="game-cell col-xs-4" id="5"></div>
</div>
<div class="row game-row">
<div class="game-cell col-xs-4" id="6"></div>
<div class="game-cell col-xs-4" id="7"></div>
<div class="game-cell col-xs-4" id="8"></div>
</div>
</section>
</section>
</main>
<footer class="row">
<p><em>Built by <a href="https://github.com/terichadbourne">Teri Chadbourne</a></em></p>
</footer>
<!-- SIGN IN Modal -->
<div class="modal fade" id="changePasswordModal" tabindex="-1" role="dialog" aria-labelledby="changePasswordModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="changePasswordModalLabel">Change Password</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form id="change-password-form">
<input name="passwords[old]" placeholder='Old Password' type='password' required/>
<input name="passwords[new]" placeholder='New Password' type='password' required/>
</form>
<p class="auth-alert-modal"></p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button class="btn btn-primary" type="submit" form="change-password-form">Change Password</button>
<p class="auth-alert"></p>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="signInModal" tabindex="-1" role="dialog" aria-labelledby="signInModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="signInModalLabel">Sign In</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form id="signin-form">
<input name="credentials[email]" placeholder='Email' type='text' required/>
<input name="credentials[password]" placeholder='Password' type='password' required/>
<p class="auth-alert-modal"></p>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button class="btn btn-primary" type="submit" form="signin-form">Sign In</button>
</div>
</div>
</div>
</div>
<!-- SIGN UP FORM Modal -->
<div class="modal fade" id="signUpModal" tabindex="-1" role="dialog" aria-labelledby="signUpModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="signUpModalLabel">Sign Up</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form id="signup-form">
<input name="credentials[email]" placeholder='Email' type='text' required/>
<input name="credentials[password]" placeholder='Password' type='password' required/>
<input name="credentials[password_confirmation]" placeholder='Password Confirmation' type='password' required/>
</form>
<p class="auth-alert-modal"></p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button class="btn btn-primary" type="submit" form="signup-form">Sign Up</button>
</div>
</div>
</div>
</div>
</body>
</html>