-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
84 lines (84 loc) · 4.48 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="uft-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="img/png" sizes="32x32" href="img/pokebola.png">
<title>Simple Js App</title>
<link rel="stylesheet" type="text/css" href="dist/minify-styles.css">
<link rel="stylesheet" href="https://necolas.github.io/normalize.css/8.0.1/normalize.css">
<!-- Bootstrap CSS-->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N" crossorigin="anonymous">
</head>
<body>
<header>
<h1>Pokedex</h1>
</header>
<main>
<!-- Search-bar -->
<nav class="navbar navbar-expand-lg bg-body-tertiary">
<form class="d-flex" role="search">
<input id="search-bar" class="form-control me-2" type="search" placeholder="Search Pokemon" aria-label="Search">
<button class="btn btn-outline-info " onclick="pokemonRepository.searchPokemon()" type="button" style="color:#FED934; border-color: #3AB4F2;">Search</button>
</form>
</nav>
<!-- Pokemon list -->
<div class="pokemon-list-container">
<ul class="list-group"></ul>
</div>
<!--Modal -->
<div class="modal fade" id="pokemon-modal" tabindex="-1" role="dialog" aria-labelledby="pokemonModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content justify content-center">
<div class="modal-header">
<h5 class="modal-title" id="pokemonModalLabel">Pokemon title</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<!-- Carousel-->
<div id="myCarousel" class="carousel slide" data-bs-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active">
<img src="https://pokeapi.co/api/v2/pokemon/2.png" class="d-block w-100" alt="active_pokemon">
</div>
<a class="left carousel-control-prev" href="https://pokeapi.co/api/v2/pokemon/" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control-next" href="https://pokeapi.co/api/v2/pokemon/" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
<!-- Loading spinner-->
<div class="d-flex align-items-center">
<strong>Loading...</strong>
<div class="spinner-border ms-auto" role="status" aria-hidden="true"></div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
</main>
<script src="js/promise-polyfill.js"></script>
<script src="js/fetch.js"></script>
<!-- <script src="js/scripts.js"></script> -->
<script src="dist/minify-script.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"
integrity="sha384-Xe+8cL9oJa6tN/veChSP7q+mnSPaj5Bcu9mPX5F5xIGE0DVittaqT5lorf0EI7Vk" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-Fy6S3B9q64WdZWQUiU+q4/2Lc9npb8tCaSX9FK7E8HnRr0Jz8D6OP9dO5Vg3Q9ct" crossorigin="anonymous"></script>
<footer>
<a class="credits" href="https://www.flaticon.es/iconos-gratis/pokemon" title="pokemon iconos">Pokemon iconos created by Nikita Golubev - Flaticon</a>
</footer>
</body>
</html>