-
Notifications
You must be signed in to change notification settings - Fork 0
/
upcoming.html
298 lines (273 loc) · 8.78 KB
/
upcoming.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
<!-- Definición de tipo de documento, en este caso HTML5 -->
<!DOCTYPE html>
<!-- Lenguaje general del documento, en este caso español -->
<html lang="en">
<head>
<!-- Información adicional: set de carácteres -->
<meta charset="UTF-8" />
<!-- Aquí se debe escribir un título apropiado al contenido del documento -->
<title>UOCFLIX | Upcoming</title>
<!-- Aquí se debe escribir una descripción del contenido del documento -->
<meta name="description" content="Movies/TV shows coming soon" />
<!-- Se desactiva el zoom-out dado en dispositivos móviles para un correcto diseño adaptativo -->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- En pos de una mejor compatibilidad con IE9 y IE8 -->
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<!-- Se importa un template personalizado de Bootstrap -->
<link
rel="stylesheet"
href="https://bootswatch.com/4/slate/bootstrap.min.css"
/>
<!-- Se importan las hojas de estilo del proyecto -->
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="css/jquery-ui.css" />
<!-- Se importa el Web App Manifest -->
<link rel="manifest" href="/manifest.json" />
<link
rel="apple-touch-icon"
sizes="57x57"
href="/imgs/apple-icon-57x57.png"
/>
<link
rel="apple-touch-icon"
sizes="60x60"
href="/imgs/apple-icon-60x60.png"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href="/imgs/apple-icon-72x72.png"
/>
<link
rel="apple-touch-icon"
sizes="76x76"
href="/imgs/apple-icon-76x76.png"
/>
<link
rel="apple-touch-icon"
sizes="114x114"
href="/imgs/apple-icon-114x114.png"
/>
<link
rel="apple-touch-icon"
sizes="120x120"
href="/imgs/apple-icon-120x120.png"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="/imgs/apple-icon-144x144.png"
/>
<link
rel="apple-touch-icon"
sizes="152x152"
href="/imgs/apple-icon-152x152.png"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="/imgs/apple-icon-180x180.png"
/>
<link
rel="icon"
type="image/png"
sizes="192x192"
href="/imgs/android-icon-192x192.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="/imgs/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="96x96"
href="/imgs/favicon-96x96.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="/imgs/favicon-16x16.png"
/>
<meta name="msapplication-TileColor" content="#ffffff" />
<meta name="msapplication-TileImage" content="/imgs/ms-icon-144x144.png" />
<meta name="theme-color" content="#ffffff" />
</head>
<body>
<!-- Etiqueta semántica de encabezado, concebido estructuralmente como navbar -->
<header class="navbar navbar-default">
<div class="container d-flex flex-column flex-sm-row">
<div
class="navbar-brand d-flex flex-row justify-content-start align-items-center"
>
<a href="index.html"
><img src="/imgs/logo1.svg" id="logo" alt="App Logo"
/></a>
<a href="index.html"
><img src="/imgs/imago.svg" id="imago" alt="App Logo"
/></a>
<h1>UOCFLIX</h1>
<div class="d-flex flex-row justify-content-end align-items-center">
<div class="toggle-container">
<div class="toggle-btn">
<div class="inner-circle"></div>
</div>
</div>
<div
class="toggle-modes d-flex flex-column justify-content-between"
>
<p>Movies</p>
<p>TV Shows</p>
</div>
</div>
</div>
<form
class="form-inline d-flex flex-column flex-sm-row"
id="searchForm"
>
<input
class="form-control mr-sm-2"
id="searchText"
type="text"
placeholder="Search"
aria-label="Search"
/>
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">
Search
</button>
</form>
</div>
<div class="container">
<nav class="navbar navbar-expand-lg ">
<button
class="navbar-toggler collapsed"
type="button"
data-toggle="collapse"
data-target=".navbar-collapse"
>
<i class="navbar-toggler-icon fas fa-hamburger"></i>
</button>
<div class="navbar-collapse collapse">
<ul class="navbar-nav list-inline">
<li onclick="location.href='index.html'" class="list-inline-item">
Index
</li>
<li
onclick="location.href='nowplaying.html'"
class="list-inline-item"
>
Now Playing
</li>
<li
onclick="location.href='trending.html'"
class="list-inline-item"
>
Trending
</li>
<li
onclick="location.href='toprated.html'"
class="list-inline-item"
>
Top Rated
</li>
<li
onclick="location.href='upcoming.html'"
class="list-inline-item active"
>
Upcoming
</li>
<li
onclick="location.href='genres.html'"
class="list-inline-item"
>
By Genre
</li>
<!--<li onclick="location.href='movie.html'" class="list-inline-item">
Latest
</li>-->
<li class="list-inline-item">About Us</li>
</ul>
</div>
<ul class="list-inline">
<li class="list-inline-item adjacent" id="controllerList">
<i class="fas fa-th-list"></i>
</li>
<li class="list-inline-item active" id="controllerGrid">
<i class="fas fa-th"></i>
</li>
</ul>
</nav>
</div>
</header>
<img id="loading" src="imgs/ajax-loader.gif" alt="Loading GIF" />
<main class="container">
<div class="jumbotron">
<div id="movies" class="row deck"></div>
</div>
</main>
<footer class="container">
<p>
Práctica Final - Tecnologías y herramientas para el desarrollo web ||
<span>Carlos Rodríguez Outerelo</span>, 2019
</p>
</footer>
</body>
<!-- Se importa jQuery+jQueryUI en el proyecto -->
<script
src="https://code.jquery.com/jquery-3.4.1.min.js"
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
crossorigin="anonymous"
></script>
<script src="js/jquery-ui.min.js"></script>
<!-- Se conecta con la web de FontAwesome para el uso de su iconografía -->
<script
defer
src="https://use.fontawesome.com/releases/v5.8.1/js/all.js"
integrity="sha384-g5uSoOSBd7KkhAMlnQILrecXvzst9TdC09/VM+pjDTCM+1il8RHz5fKANTFFb+gQ"
crossorigin="anonymous"
></script>
<!-- Se importan scripts con funciones de Bootstrap (ejemplo: menú de hamburguesa) -->
<script src="https://bootswatch.com/_vendor/popper.js/dist/umd/popper.min.js"></script>
<script src="https://bootswatch.com/_vendor/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="https://bootswatch.com/_assets/js/custom.js"></script>
<!-- Axios facilita las llamadas AJAX (API Rest) -->
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<!-- Se importa el script que define la funcionalidad de la aplicación -->
<script src="js/app.js"></script>
<!-- Se importa el registro del service worker -->
<script src="js/service-worker-register.js"></script>
<script>
loading();
if ("mode" in sessionStorage) {
var mode = sessionStorage.getItem("mode");
checkMode();
} else {
var mode = "movie";
sessionStorage.setItem("mode", mode);
}
if ("display" in sessionStorage) {
var display = sessionStorage.getItem("display");
} else {
var display = "grid";
sessionStorage.setItem("display", display);
}
console.log(display);
if (display == "grid") {
$("#controllerGrid").addClass("active");
$("#controllerList").removeClass("active");
} else if (display == "list") {
$("#controllerList").addClass("active");
$("#controllerGrid").removeClass("active");
}
page = 1;
upcoming(page);
$(".toggle-btn").on("click", function() {
$(".toggle-btn").toggleClass("active");
checkToggle();
upcoming(page);
});
</script>
</html>