-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
222 lines (212 loc) · 13.1 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8; X-Content-Type-Options=nosniff">
<meta http-equiv="Content-Security-Policy" content="default-src 'self' https://fonts.gstatic.com https://fonts.googleapis.com https://cdn.jsdelivr.net https://nbastats.staging.api.pedromealha.dev https://nbastats.api.pedromealha.dev https://cdn.nba.com https://ak-static.cms.nba.com https://img.shields.io; script-src https://cdn.jsdelivr.net 'self' 'unsafe-inline' 'unsafe-eval'; style-src * 'unsafe-inline'">
<meta http-equiv="X-Content-Security-Policy" content="default-src 'self' https://fonts.gstatic.com https://fonts.googleapis.com https://cdn.jsdelivr.net https://nbastats.staging.api.pedromealha.dev https://nbastats.api.pedromealha.dev https://cdn.nba.com https://ak-static.cms.nba.com https://img.shields.io script-src https://cdn.jsdelivr.net 'self' 'unsafe-inline' 'unsafe-eval'; style-src * 'unsafe-inline'">
<title>Nba stats validator</title>
<!-- CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous">
<link rel="stylesheet" href="./index.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!-- FONTS -->
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400&display=swap" rel="stylesheet">
</head>
<body>
<div id="lading-page" class="center">
<img id="open-nba-file-btn" src="https://cdn.nba.com/logos/leagues/logo-nba-logoman.svg" height="180" width="90" title="small nba logo" alt="small nba logo" class="small-league-logo" loading="lazy">
<img id="open-wnba-file-btn" src="https://cdn.nba.com/logos/leagues/logo-wnba.svg" height="180" width="90" title="small wnba logo" alt="small wnba logo" class="small-league-logo" loading="lazy">
</div>
<div id="loading-nba" class="center d-none">
<img src="https://cdn.nba.com/logos/leagues/logo-nba.svg" height="120" width="130" title="nba logo" alt="nba logo" class="league-logo" loading="lazy">
<p class="text-center loading" style="font-size: 1.5em;">Loading ...</p>
</div>
<div id="loading-wnba" class="center d-none">
<img src="https://ak-static.cms.nba.com/wp-content/themes/wnba-parent/img/logos/wnba-secondary-logo.svg" height="120" width="130" title="wnba logo" alt="wnba logo" class="league-logo" loading="lazy">
<p class="text-center loading" style="font-size: 1.5em;">Loading ...</p>
</div>
<div id="team-inputs" class="center d-none">
<form id="teams-txt-form">
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text">Away</span>
</div>
<input style="margin-right: 5%;text-transform:uppercase" id="visitor-team-tri-text" type="text" required size="10" maxlength="3" minlength="3" pattern="[A-Za-z]{3}" title="Away team tricode" placeholder="E.g. LAL" aria-label="Away team" class="form-control" onkeypress="return /[a-z]/i.test(event.key)">
<div class="align-items-end" style="padding-top: 1.5%;">VS</div>
<input style="margin-left: 5%;text-transform:uppercase" id="home-team-tri-text" type="text" required size="10" maxlength="3" minlength="3" pattern="[A-Za-z]{3}" title="Home team tricode" placeholder="E.g. CHA" aria-label="Home team" class="form-control" onkeypress="return /[a-z]/i.test(event.key)">
<div class="input-group-prepend">
<span class="input-group-text">Home</span>
</div>
</div>
<div style="margin: auto;width: 50%;text-align: center;margin-top: 10%;">
<button type="submit" class="btn btn-light">Continue</button>
</div>
</form>
</div>
<div id="content">
<div class="container">
<div class="row top-bar">
<div class="col" id="filename">File name</div>
<div class="col" style="text-align: right;">
<a href="#" id="open-new-file-btn" style="text-decoration: none; color: white;">
<span class="material-icons md-18" style="vertical-align: sub;">upload_file</span>
Upload new file
</a>
</div>
</div>
<div class="row justify-content-md-center text-center">
<div class="col" id="date"></div>
</div>
<div class="row justify-content-md-center text-center">
<div class="col" id="location"></div>
</div>
<div class="row justify-content-md-center text-center teams-display">
<div class="col-4" id="home-team">
<img id="home-logo" src="home" title="home team logo" alt="home team logo" class="team-logo" loading="lazy" onerror="this.onerror=null; this.onload=null; this.style.maxWidth='20%'; this.style.paddingBottom='5%'; this.src='https://cdn.nba.com/logos/leagues/logo-gleague.svg';">
<p id="home-team-name"></p>
<p id="home-team-tricode"></p>
</div>
<div class="col-4 d-flex flex-column justify-content-between">
<div class="row text-center align-items-center final-score">
<div class="col" id="home-team-points"></div>
<div class="col" style="font-size: 0.8em;">VS</div>
<div class="col" id="visitor-team-points"></div>
</div>
<div class="row align-items-end quarters-score" style="margin-top: 17%;">
<div class="col-3" style="padding-left: 1%; padding-right: 1%">
1P <p><span id="home-points-1p"></span> - <span id="visitor-points-1p"></span></p>
</div>
<div class="col-3" style="padding-left: 1%; padding-right: 1%">
2P <p><span id="home-points-2p"></span> - <span id="visitor-points-2p"></span></p>
</div>
<div class="col-3" style="padding-left: 1%; padding-right: 1%">
3P <p><span id="home-points-3p"></span> - <span id="visitor-points-3p"></span></p>
</div>
<div class="col-3" style="padding-left: 1%; padding-right: 1%">
4P <p><span id="home-points-4p"></span> - <span id="visitor-points-4p"></span></p>
</div>
</div>
<div class="row align-items-end quarters-score">
<div class="col-3" style="padding-left: 1%; padding-right: 1%; display: none;">
OT1 <p><span id="home-points-first-ot"></span> - <span id="visitor-points-first-ot"></span></p>
</div>
<div class="col-3" style="padding-left: 1%; padding-right: 1%; display: none;">
OT2 <p><span id="home-points-second-ot"></span> - <span id="visitor-points-second-ot"></span></p>
</div>
<div class="col-3" style="padding-left: 1%; padding-right: 1%; display: none;">
OT3 <p><span id="home-points-third-ot"></span> - <span id="visitor-points-third-ot"></span></p>
</div>
</div>
</div>
<div class="col-4" id="visitor-team">
<img id="visitor-logo" src="visitor" title="Visitor team logo" alt="Visitor team logo" class="team-logo" loading="lazy" onerror="this.onerror=null; this.onload=null; this.style.maxWidth='20%'; this.style.paddingBottom='5%'; this.src='https://cdn.nba.com/logos/leagues/logo-gleague.svg';">
<p id="visitor-team-name"></p>
<p id="visitor-team-tricode"></p>
</div>
</div>
<div class="row" style="margin-top: 5%; margin-bottom: 0.2%;">
<div class="col-auto active-tab noselect" style="margin-right: 0.2%;">
<span id="home-team-name-players-title"></span> (Home)
</div>
<div class="col-auto deactive-tab noselect">
<span id="visitor-team-name-players-title"></span> (Visitor)
</div>
<div class="col" style="text-align: right;">
<a href="#" style="text-decoration: none; color: white;" id="validate">
<span class="material-icons md-18" style="vertical-align: sub;">
sync
</span>
Validate
</a>
</div>
</div>
<div class="row" style="margin-bottom: 5%;">
<div class="card table-rounded">
<div class="table-responsive">
<table id="home-players-table" class="table table-dark table-striped table-bordered table-hover">
<thead class="thead-light">
<tr>
<th scope="col">Name</th>
<th scope="col">Position</th>
<th scope="col">Min</th>
<th scope="col">FG M</th>
<th scope="col">FG A</th>
<th scope="col">FG %</th>
<th scope="col">3P M</th>
<th scope="col">3P A</th>
<th scope="col">3P %</th>
<th scope="col">FT M</th>
<th scope="col">FT A</th>
<th scope="col">FT %</th>
<th scope="col">OFF</th>
<th scope="col">DEF</th>
<th scope="col">TOT</th>
<th scope="col">AST</th>
<th scope="col">PF</th>
<th scope="col">FD</th>
<th scope="col">ST</th>
<th scope="col">TO</th>
<th scope="col">BS</th>
<th scope="col">PTS</th>
<th scope="col">+/-</th>
</tr>
</thead>
<tbody></tbody>
<tfoot></tfoot>
</table>
</div>
</div>
</div>
<div class="row" style="display: none; margin-bottom: 5%;">
<div class="card table-rounded">
<div class="table-responsive">
<table id="visitor-players-table" class="table table-dark table-striped table-bordered table-hover">
<thead class="thead-light">
<tr>
<th scope="col">Name</th>
<th scope="col">Position</th>
<th scope="col">Min</th>
<th scope="col">FG M</th>
<th scope="col">FG A</th>
<th scope="col">FG %</th>
<th scope="col">3P M</th>
<th scope="col">3P A</th>
<th scope="col">3P %</th>
<th scope="col">FT M</th>
<th scope="col">FT A</th>
<th scope="col">FT %</th>
<th scope="col">OFF</th>
<th scope="col">DEF</th>
<th scope="col">TOT</th>
<th scope="col">AST</th>
<th scope="col">PF</th>
<th scope="col">FD</th>
<th scope="col">ST</th>
<th scope="col">TO</th>
<th scope="col">BS</th>
<th scope="col">PTS</th>
<th scope="col">+/-</th>
</tr>
</thead>
<tbody></tbody>
<tfoot></tfoot>
</table>
</div>
</div>
</div>
</div>
</div>
<footer style="bottom: 0;">
<span>Made with</span> <span class="material-icons" style="font-size: 1em!important; vertical-align: sub;">favorite_border</span>
<span>by</span>
<a href="https://github.com/pedro-mealha/" class="github-link">WeNeedThePoh</a>
<span>|</span>
<a href="https://github.com/pedro-mealha/nba-stats-validator"><img alt="github" src="https://img.shields.io/static/v1?label=github&message=repo&color=inactive&logo=github"></a>
 <a href="https://github.com/pedro-mealha/nba-stats-validator#license"><img alt="license" src="https://img.shields.io/badge/License-GPLv3-blue.svg"></a>
</footer>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.bundle.min.js" integrity="sha384-b5kHyXgcpbZJO/tY9Ul7kGkf1S0CWuKcCD38l8YkeH8z8QjE0GmW1gYU5S9FOnJ0" crossorigin="anonymous"></script>
<script type="module" src="./bundle.js"></script>
</body>
</html>