-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
374 lines (360 loc) · 13.5 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
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>BasketballApp</title>
<link rel="icon" type="image/ico" href="./img/basketballNews.ico" />
<link
rel="stylesheet"
href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"
/>
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z"
crossorigin="anonymous"
/>
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN"
crossorigin="anonymous"
/>
<link
href="https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,300;1,800&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="style.css" />
</head>
<body class="d-flex flex-column h-100">
<!-- Start Nav -->
<header role="navigation" class="flex-shrink-0 mb-5">
<nav class="navbar navbar-expand-md fixed-top">
<a class="navbar-brand brand-text" href="#" id="top-left-title">
<img
src="./img/TopLeftico.ico"
width="40"
height="40"
alt="basketballNewsIcon"
loading="lazy"
/>
Basket News
</a>
<button
class="navbar-toggler"
type="button"
data-toggle="collapse"
data-target="#navbarTogglerHambarger"
aria-controls="navbarTogglerHambarger"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"
><i class="fas fa-bars fa-lg"></i
></span>
</button>
<div class="collapse navbar-collapse" id="navbarTogglerHambarger">
<ul class="navbar-nav mr-auto mt-2 mt-lg-0">
<li class="nav-item">
<a class="nav-link active" href="#player-search">Search</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="#article-section">News</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="#playerContainer"
>Scores<span class="sr-only">(current)</span></a
>
</li>
</ul>
</div>
</nav>
</header>
<!-- End Nav -->
<!-- Main Section -->
<main role="main" class="flex-shrink-0">
<section class="flex-shrink-0">
<div class="container">
<div class="jumbotron jumbo-position">
<h1 class="display-3 jumbo-head">
<i class="fa fa-basketball-ball" aria-hidden="true"></i> Basket
News
<i class="fa fa-newspaper" aria-hidden="true"></i>
</h1>
<div>
<p class="lead">
For all your current season stats and sporting news!
</p>
<a class="nav-link active" href="#player-search"
><img
src="img/basketball-removebg-preview.png"
alt="Example testing img"
class="ball-position"
id="ball-img"
/></a>
</div>
<hr class="my-3" />
<p class="contrast-jumbo-text">
Welcome to the Basket News web app! Are you a fan of the NBA or have a
favourite player? Basket News brings all this useful information
want to keep up to date on this seasons player statistics? Do
you want to easily pull up some news archives about your athlete
into one place. Don't believe us? Just try it out and you'll
never need to search anywhere else for your NBA stats or news!
</p>
</div>
</div>
</section>
<!-- Search form body -->
<div class="container">
<div class="col-md-12">
<form
class="search-form form-inline d-flex justify-content-center md-form form-sm active-cyan active-cyan-2 mt-2"
>
<i class="fas fa-search" aria-hidden="true"> </i>
<input
id="player-search"
class="form-control form-control-sm ml-3 w-75"
type="text"
placeholder="Search for a player for current season stats + news; e.g: 'LeBron James'"
aria-label="Search"
/>
<button
class="btn btn-primary btn-sm"
type="submit"
id="submit-button"
data-toggle="tooltip"
data-placement="top"
title="Submit for stats/news"
>
<i class="far fa-check-circle"></i>
</button>
<button
class="btn btn-danger btn-sm"
type="button"
id="clear-data"
data-toggle="tooltip"
data-placement="top"
title="Delete previous players"
>
<i class="fas fa-trash-alt"></i>
</button>
<div
id="noCurrentSeasonStats"
class="alert alert-warning text-center"
>
Sorry, this player isn't actively playing this season. Scroll down
and you can still check the news!
</div>
<div id="searchErrorNotice" class="alert alert-warning text-center">
Something went wrong! Please try again.
</div>
<br />
<ul class="nav flex-column" id="search-history">
<!-- Dynamically inserted -->
</ul>
</form>
</div>
</div>
<!-- Player Selection -->
<div class="container">
<div class="row">
<div class="col-lg-6" id="search-player-card">
<br />
<div class="card player-container" id="playerContainer">
<div class="card-header">
<strong> <i class="fa fa-search"></i> Searched players </strong>
</div>
<div class="card-body" id="playerSaved"></div>
</div>
</div>
<div class="col-lg-6" id="searchArticles">
<br />
<!-- First card is for handling the search parameters -->
<div class="card" id="articlesBody">
<div class="card-header">
<strong>
<i class="fa fa-search"></i>
Search Articles filter
</strong>
</div>
<div class="card-body">
<div class="form-group">
<label for="article-count">
Number of Articles to Retrieve:
</label>
<select
id="article-count"
class="custom-select"
aria-labelledby="dropdownMenuButton"
>
<option value="1">1</option>
<option value="3">3</option>
<option value="5" selected>5</option>
<option value="10">10</option>
</select>
</div>
<div class="form-group-ex1">
<label for="yearStart"> Start Year (Optional): </label>
<select
id="yearStart"
class="custom-select"
aria-labelledby="dropdownMenuButton"
></select>
</div>
<div class="form-group-ex1 mt-3">
<label for="yearEnd"> End Year (Optional): </label>
<select
id="yearEnd"
class="custom-select"
aria-labelledby="dropdownMenuButton"
></select>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Profile Section -->
<div class="container">
<div id="profile" class="profile-container">
<div class="col-md-12">
<div class="row">
<div class="table-responsive card">
<table class="table">
<caption aria-label="current-season-table"></caption>
<thead>
<tr>
<th scope="col" class="table-headings" id="name">
Player
</th>
<th scope="col" class="table-headings" id="points">
Points
</th>
<th scope="col" class="table-headings" id="twoPointers">
2PT Goals
</th>
<th scope="col" class="table-headings" id="threePointers">
3PT Goals
</th>
<th scope="col" class="table-headings" id="freeThrows">
Free Throws
</th>
<th scope="col" class="table-headings" id="twoPointPCT">
2PT %
</th>
<th scope="col" class="table-headings" id="threePointPCT">
3PT %
</th>
<th scope="col" class="table-headings" id="freeThrowPCT">
FT %
</th>
</tr>
</thead>
<tbody id="renderPlayers"></tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<!-- News Section Start -->
<div class="container news-container">
<h2 class="news-h1 card mt-3">News section</h2>
<!-- This row will handle all of the retrieved articles -->
<div class="row">
<div class="col-sm-12">
<br />
<!-- This card will initially be made up of a card and wells for each of the articles retrieved -->
<div class="card" id="newCard">
<!-- card Heading for the retrieved articles box -->
<div class="card-header">
<strong> <i class="fa fa-table"></i> Top Articles</strong>
<button
class="btn btn-danger btn-sm float-right"
type="button"
id="clear-all-button"
data-toggle="tooltip"
data-placement="top"
title="Delete all players/news"
>
<i class="fas fa-trash-alt"></i>
Clear all page results
</button>
</div>
<!-- This main card will hold each of the resulting articles -->
<div class="card-body" id="article-section"></div>
</div>
</div>
</div>
</div>
</main>
<!-- Footer Start -->
<!-- Link to Github/Profile -->
<!-- <footer class="footer py-3 bg-secondary text-white mt-auto container-fluid">
<div class="row text-center">
<small>Copyright © Alpha's Website</small>
<div class="col-md">
<ul class="list-unstyled mb-0">
<a class="github-link" href="https://github.com/Michaelmw17"
><i class="fab fa-github"></i>Michael</a
>
<a class="github-link" href="https://github.com/AGr2020Xman"
><i class="fab fa-github"></i>André</a
>
<a class="github-link" href="https://github.com/rachellebarredo"
><i class="fab fa-github"></i>Rachelle</a
>
</ul>
</div>
</div>
</footer> -->
<footer
class="footer mt-4 py-3 container-fluid text-white bg-secondary text-center"
>
<div class="row">
<div class="col-md">
<small>Copyright © Alpha's Website 2020</small>
<ul class="list-unstyled mb-0">
<a class="github-link" href="https://github.com/Michaelmw17"
><i class="fab fa-github"></i>Michael</a
>
<a class="github-link" href="https://github.com/AGr2020Xman"
><i class="fab fa-github"></i>André</a
>
<a class="github-link" href="https://github.com/rachellebarredo"
><i class="fab fa-github"></i>Rachelle</a
>
</ul>
</div>
</div>
</footer>
<!-- Jquery.min -->
<script
src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
crossorigin="anonymous"
></script>
<!-- jQuery UI -->
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<!-- Popper cdn -->
<script
src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"
integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN"
crossorigin="anonymous"
></script>
<!-- Bootstrap cdn -->
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"
integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV"
crossorigin="anonymous"
></script>
<!-- Font awesome -->
<script
src="https://use.fontawesome.com/releases/v5.14.0/js/all.js"
data-auto-replace-svg="nest"
></script>
<script type="text/javascript" src="./script.js"></script>
</body>
</html>