forked from rafaelrat/TP-RESTFul-App
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
68 lines (51 loc) · 2.36 KB
/
index.html
File metadata and controls
68 lines (51 loc) · 2.36 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>The Movie DB Simple Client</title>
<script src="https://code.jquery.com/jquery-3.7.1.min.js"
integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<script src="js/plugins/jquery.simplePagination.js"></script>
<script src="js/api/checkApiKey.js"></script>
<script src="js/api/getPopularMovies.js"></script>
<script src="js/api/searchMovie.js"></script>
<script src="js/api/getMovieDetails.js"></script>
<script src="js/components/configureApiKeyForm.js"></script>
<script src="js/components/configureNavbar.js"></script>
<script src="js/components/configureSearchBar.js"></script>
<script src="js/utils/displayPagination.js"></script>
<script src="js/utils/createMovieModal.js"></script>
<script src="js/utils/createMovieCard.js"></script>
<script src="js/loadMovies.js"></script>
<link rel="stylesheet" href="css/body.css">
<link rel="stylesheet" href="css/navbar.css">
<link rel="stylesheet" href="css/pagination.css">
</head>
<body>
<div id="navbarLoader"></div>
<div id="searchBarLoader"></div>
<div id="infoLoader"></div>
<div id="movieListLoader"></div>
<div id="paginationContainer"></div>
<div id="modalLoader"></div>
<script>
$(document).ready(function () {
var apiKey = localStorage.getItem('apiKey');
console.log(apiKey)
if (!apiKey) {
$('body').load('components/form.html', configureApiKeyForm)
} else {
$('#navbarLoader').load('components/navbar.html', configureNavbar)
$('#searchBarLoader').load('components/search-bar.html', configureSearchBar)
loadPopularMoviesList();
}
})
</script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.min.js"
integrity="sha384-BBtl+eGJRgqQAUMxJ7pMwbEyER4l1g+O15P+16Ep7Q9Q+zqX6gSbd85u4mG4QzX+"
crossorigin="anonymous"></script>
</body>
</html>