-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
164 lines (162 loc) · 7.11 KB
/
index.html
File metadata and controls
164 lines (162 loc) · 7.11 KB
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
155
156
157
158
159
160
161
162
163
164
<!DOCTYPE html>
<html>
<head>
<style media="screen">
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');
</style>
<title>Tic-Tac-Whoa</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>
<div class="modal fade" id="getGamesModal" tabindex="-1" aria-labelledby="getGamesModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="getGamesModalLabel">Games Played</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<h3 id='getGamesTotal'></h3>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="signUpModal" tabindex="-1" aria-labelledby="signUpModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="signUpModalLabel">Sign Up Below!</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="sign-up">
<input
name="credentials[email]"
type="text"
placeholder="Enter email">
<input
name="credentials[password]"
type="password"
placeholder="Enter Password">
<input
name="credentials[password_confirmation]"
type="password"
placeholder="Confirm Password">
<button type="submit" class="btn btn-primary">Sign Up</button>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="signInModal" tabindex="-1" aria-labelledby="signInModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="signInModalLabel">Sign In Below!</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="sign-in">
<input
placeholder="Enter email"
type="text"
name="credentials[email]"/>
<input
placeholder="Enter Password"
type="password"
name="credentials[password]"/>
<button type="submit" class="btn btn-primary">Sign In</button>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="changePasswordModal" tabindex="-1" aria-labelledby="changePasswordModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="changePasswordModalLabel">Change Password Below!</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">
<input
placeholder="Enter Current Password"
type="password"
name="passwords[old]"/>
<input
placeholder="Enter New Password"
type="password"
name="passwords[new]"/>
<button type="submit" class="btn btn-info">Change Password</button>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="unauthenticated">
<nav class="nav justify-content-center">
<button type="button" class="btn btn-primary col-12 col-sm-4 col-lg-5 mr-1" data-toggle="modal" data-target="#signUpModal">
No Account? Sign Up Here!
</button>
<button type="button" class="btn btn-primary col-12 col-sm-4 col-lg-5 " data-toggle="modal" data-target="#signInModal">
Sign In Here!
</button>
</nav>
<main id='home-message'>
<p>Are you ready to play the most fantastically average game of tic-tac-toe??
<br>Sign in and click on New Game!</p>
</main>
</div>
<div class="authenticated">
<nav class="nav justify-content-end">
<button id="get-games" class="btn btn-info btn-sm mr-1" data-toggle="modal" data-target="#getGamesModal">Total Played</button>
<button type="button" class="btn btn-primary btn-sm mr-1" data-toggle="modal" data-target="#changePasswordModal">
Change Password
</button>
<button id="sign-out" class="btn btn-secondary btn-sm">Sign Out</button>
</nav>
<button id="game-start" class="btn btn-info btn-lg btn-block Start">NEW GAME</button>
</div>
<div id="message" class="message col-12"></div>
<div class="container" id="game">
<div class="row">
<div class="col-4" data-cell-index='0'></div>
<div class="col-4" data-cell-index='1'></div>
<div class="col-4" data-cell-index='2'></div>
<div class="col-4" data-cell-index='3'></div>
<div class="col-4" data-cell-index='4'></div>
<div class="col-4" data-cell-index='5'></div>
<div class="col-4" data-cell-index='6'></div>
<div class="col-4" data-cell-index='7'></div>
<div class="col-4" data-cell-index='8'></div>
<button id="game-restart" class="btn btn-primary btn-lg btn-block">RESTART</button>
</div>
</div>
</body>
</html>