-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
192 lines (181 loc) · 6.67 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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- soccer favicon -->
<link rel="icon" type="image/x-icon" href="./assets/img/favicon.ico" />
<!-- bootstrap style link -->
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ"
crossorigin="anonymous"
/>
<!-- Local CSS -->
<link rel="stylesheet" href="./assets/css/style.css" />
<!-- Local JS script -->
<script src="./assets/js/leagues.js" type="module"></script>
<script
src="./assets/js/requestAPI_getLeagueStandings.js"
type="module"
></script>
<title>Soccer stats</title>
</head>
<body>
<header>
<nav class="navbar navbar-expand-lg">
<div class="container-fluid">
<!-- LOGO -->
<a class="navbar-brand" href="#">
<img
class="logo-header"
src="assets/img/logo-soccerstats.png"
alt="logo de soccerstats"
/>
</a>
<!-- MENU HAMBURGUESA -->
<button
class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navbarNav"
aria-controls="navbarNav"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<!-- NAVBAR -->
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a
id="homepage"
class="nav-link active"
aria-current="page"
href="#"
>Home</a
>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Info</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Contacto</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
<div class="container-fluid">
<div class="row">
<aside class="side-bar col-3">
<div class="liga-container mt-2">
<h3 class="title-ligas">League</h3>
<p class="dash"></p>
<ul class="mt-2" id="listTeam"></ul>
</div>
</aside>
<div id="selector-right-img" class="col-9 welcome"></div>
<main id="selector-right-menu" style="display: none" class="col-9">
<div class="row">
<div class="col-4">
<div class="card d-flex flex-column mt-2 px-3 pb-3">
<h4 class="graph-title pt-3">Current League</h4>
<select
class="form-select mt-2"
aria-label="Default select example"
id="year"
alt="year"
>
<option disabled>Select Season Year</option>
<option selected value="2022">2022</option>
<option value="2021">2021</option>
<option value="2020">2020</option>
<option value="2019">2019</option>
<option value="2018">2018</option>
<option value="2017">2017</option>
<option value="2016">2016</option>
<option value="2015">2015</option>
<option value="2014">2014</option>
<option value="2013">2013</option>
</select>
<div id="data"></div>
</div>
</div>
<div class="col-8">
<div class="card d-flex flex-column mt-2 px-3 pb-3">
<!-- INFO PARA AGREGAR -->
<h4 class="card-title pt-3">Position Table</h4>
<div class="position-container">
<div class="row">
<div class="col-5">
<p class="position-header m-0">Team</p>
</div>
<div class="col-1 p-0">
<p class="position-header m-0">Pts</p>
</div>
<div class="col-1 p-0">
<p class="position-header m-0">W</p>
</div>
<div class="col-1 p-0">
<p class="position-header m-0">L</p>
</div>
<div class="col-1 p-0">
<p class="position-header m-0">T</p>
</div>
<div class="col-1 p-0">
<p class="position-header m-0">GF</p>
</div>
<div class="col-1 p-0">
<p class="position-header m-0">GA</p>
</div>
<div class="col-1 p-0">
<p class="position-header m-0">Diff</p>
</div>
</div>
<div id="position" class="m-0 p-0"></div>
</div>
</div>
</div>
</div>
<section id="LeagueSeasons" class="card mt-3">
<div class="row">
<div class="col-12">
<h4 class="graph-title pt-3 px-3">Performance Table</h4>
</div>
<div class="col-12">
<canvas id="leagueStandingGraph"></canvas>
</div>
</div>
</section>
</main>
</div>
<!-- END ROW -->
</div>
<!-- Bootstrap JS script -->
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ENjdO4Dr2bkBIFxQpeoTz1HIcje39Wm4jDKdf19U8gI4ddQ3GYNS7NTKfAdVQSZe"
crossorigin="anonymous"
></script>
<!-- CHART JS -->
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<!-- AXIOS -->
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<!-- <script src="./assets/js/graph.js"></script> -->
<script src="./assets/js/main.js"></script>
<script>
const home = document.getElementById('homepage')
home.addEventListener('click', (event) => {
const selectorRightImg = document.getElementById('selector-right-img')
const selectorRightMenu = document.getElementById('selector-right-menu')
selectorRightImg.style.display = 'block'
selectorRightMenu.style.display = 'none'
})
</script>
</body>
</html>