-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
228 lines (202 loc) · 8.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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="assets/css/styles.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
</head>
<body class="text-white bg-secondary">
<!--This page will act as the main user menu-->
<div class="container-fluid">
<div class="jumbotron bg-dark">
<h1>Your Sports Recorder</h1>
<hr>
<p>This app allows schools to record sports data for the benefits
of their teams, individual players, and college recruiters</p>
</div>
</div>
<div class="container-fluid">
<!--NEW PLAYERS TABLE:
This will be a table with text inputs for initializing new players
that can be selected for games
-->
<div class="text-white bg-dark">
New Player
</div>
<table class="table table-striped table-dark" id="newPlayersTable">
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Grade Level</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<input type="text" class="text-white bg-dark container-fluid" name="name" value="">
</td>
<td>
<input type="text" class="text-white bg-dark container-fluid" name="grade" placeholder="K-12">
</td>
</tr>
</tbody>
</table>
<div class="text-center buttons">
<button type="button" class="btn btn-outline-dark btn-lg" id="start_game" data-toggle="modal" data-target="#pickGameModal">Start Game</button>
<button type="button" class="btn btn-outline-light btn-lg" id="enter_player">Enter Player</button>
</div>
<!--CURRENT PLAYERS TABLE:
This will be a list of all the possible players to choose from it will
have sort functions, group capabilities all that jazz. Each player will
have a radio button next to their row of the table, if this radio button
is toggled on when the start new game button is pushed, this player will
be added to the game
-->
<!--BUTTONS AND MENUS FOR DIFFERENT TABLE SORTING METHODS WILL GO HERE-->
<div class="text-white bg-dark">
Current Players
</div>
<table class="table table-dark table-striped" id="currentPlayersTable">
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Grade Level</th>
<th scope="col">Sports</th>
<th scope="col">Select</th>
<th></th>
</tr>
</thead>
</table>
</div>
<!--PICK YOUR GAME MODAL-->
<div class="modal fade" id="pickGameModal" tabindex="-1" role="dialog" aria-labelledby="gameModalTitle" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content text-white bg-dark">
<div class="modal-header">
<h5 class="modal-title" id="gameModalTitle">Pick Your Game</h5>
</div>
<div class="modal-body text-center">
<img id='playBaseball'class="sports-modal-img" src="assets/textures/baseball.png" alt="">
<img id='playFootball' class="sports-modal-img-larger" src="assets/textures/football.png" alt="">
<img id='playSoccer' class="sports-modal-img" src="assets/textures/soccerball.png" alt="">
<img id='playBasketball' class="sports-modal-img" src="assets/textures/basketball.png" alt="">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Record Stats Modal -->
<div class="modal fade" id="gameModal" tabindex="-1" role="dialog" aria-labelledby="gameModalTitle" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content text-white bg-dark">
<div class="modal-header">
<h5 class="modal-title" id="gameModalTitle">Input Stats</h5>
</div>
<div class="modal-body text-center recordGameModal">
<table class="table table-striped table-dark container-fluid" id="modalTable">
</table>
</div>
<div class="modal-footer">
<button id="closeGameButton" type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
<button id="addPlayerButton" type="button" class="btn btn-secondary" name="button">Add Player</button>
<button id="saveGameButton" type="button" class="btn btn-primary">Save Game</button>
</div>
</div>
</div>
</div>
<!--ADD PLAYER TO EXISTING GAME MODAL-->
<div class="modal fade" id="addPlayersModal" tabindex="-1" role="dialog" aria-labelledby="gameModalTitle" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content text-white bg-dark">
<div class="modal-header">
<h5 class="modal-title" id="gameModalTitle">Add Player</h5>
</div>
<div class="modal-body text-center recordGameModal">
<table class="table table-striped table-dark container-fluid" id="addPlayersTable">
</table>
</div>
<div class="modal-footer">
<button id="" type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
<button id="" type="button" class="btn btn-secondary" name="button">Add Players</button>
</div>
</div>
</div>
</div>
<!--THIS IS HOW PLAYER TABLE ROWS NEED TO BE MADE-->
<script type="text/plain" id="currentPlayersTableHeader">
<tr>
<th scope="col">Name</th>
<th scope="col">Grade Level</th>
<th scope="col">Sports</th>
<th scope="col">Select</th>
<th></th>
</tr>
</script>
<script type="text/plain" id="playerRowTemplate">
<tr class="playerRow">
</tr>
</script>
<script type="text/plain" id="playerDataTemplate">
<td class="playerData">
</td>
</script>
<script type="text/plain" id="playerCheckboxTemplate">
<td>
<input type="checkbox" class="playerCheckbox">
</td>
</script>
<script type="text/plain" id="playerRemoveButtonTemplate">
<td>
<button type="button" class="close playerRemoveButton" style="color:red;" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</td>
</script>
<script type="text/plain" id="modalTableHeaderTemplate">
<tr>
<td></td>
</tr>
</script>
<script type="text/plain" id="modalTableDataTemplate">
<td>
</td>
</script>
<script type="text/plain" id="modalTableToolTipTemplate">
<button type="button" class="btn btn-dark statAbreviations" data-toggle="tooltip" data-placement="bottom" title="">
</button>
</script>
<script type="text/plain" id="countableStatInputTemplate">
<td>
<button type='button' class='btn btn-dark btn-sm decrementButton'> - </button>
<input type='text' class='bg-secondary text-white text-center' value='0'>
<button type='button' class='btn btn-dark btn-sm incrementButton'> + </button>
</td>
</script>
<script src="https://www.gstatic.com/firebasejs/5.3.1/firebase.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "AIzaSyBEVcX521M1xvRJbrc1oMrx2rviluNXV98",
authDomain: "fantasysports-e95ae.firebaseapp.com",
databaseURL: "https://fantasysports-e95ae.firebaseio.com",
projectId: "fantasysports-e95ae",
storageBucket: "fantasysports-e95ae.appspot.com",
messagingSenderId: "581141158176"
};
firebase.initializeApp(config);
</script>
<script type="text/javascript" src="assets/js/Position.js"></script>
<script type="text/javascript" src="assets/js/Stats.js"></script>
<script type="text/javascript" src="assets/js/Player.js"></script>
<script type="text/javascript" src="assets/js/Game.js"></script>
<script type="text/javascript" src="assets/js/BaseballGame.js"></script>
<script type="text/javascript" src="assets/js/Database.js"></script>
<script type="text/javascript" src="assets/js/playGame.js"></script>
<script type="text/javascript" src="assets/js/inputLogic.js"></script>
</body>
</html>