-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
91 lines (89 loc) · 4.31 KB
/
index.html
File metadata and controls
91 lines (89 loc) · 4.31 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-16">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="A pokedex maked with the Api of pokeapi.co, only includes the first 150 pokemons">
<meta name="keywords" content="Pokemon, 1st generation, pokedex">
<meta name="author" content="Leonardo Espinoza">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-171633627-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-171633627-2');
</script>
<script src="https://kit.fontawesome.com/1db2702c51.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="src/css/pokedex.css">
<title>Pokedex</title>
</head>
<body>
<main class="pokedex">
<div class="pokedex__general">
<span id="warning"></span>
<div class="pokedex__general--search" id="container_input">
<input type="number" min="1" max="150" id="searchInput" class="general__search--input" placeholder="Pokemon number" aria-label="Input for search pokemon by id">
<input type="button" value="Search" class="general__search--button" id="searchButton">
</div>
<div class="pokedex__general--image" id="container_image">
<div id="loader"></div>
<img src="" alt="" class="general--image__img" id="image">
</div>
<div class="pokedex__general--arrows">
<i class="fas fa-caret-right general__arrows--previously" id="previously"></i>
<i class="fas fa-caret-right general__arrows--next" id="next"></i>
</div>
<div class="pokedex__general--types">
<span class="type" id="firstType"></span>
<span class="type" id="secondType"></span>
</div>
<h3>Stats</h3>
<div class="pokedex__general--stats">
<div class="stats--name">
<span class="general__stats--span" >Hp:</span>
<span class="general__stats--span">Attack:</span>
<span class="general__stats--span">Defense:</span>
<span class="general__stats--span">special defense:</span>
<span class="general__stats--span">Special attack:</span>
<span class="general__stats--span">Speed:</span>
</div>
<div class="stats--value">
<div class="progress_bar">
<span id="hp"></span>
</div>
<div class="progress_bar">
<span id="attack"></span>
</div>
<div class="progress_bar">
<span id="defense"></span>
</div>
<div class="progress_bar">
<span id="special-defense"></span>
</div>
<div class="progress_bar">
<span id="special-attack"></span>
</div>
<div class="progress_bar">
<span id="speed"></span>
</div>
</div>
</div>
</div>
<div class="pokedex__specify">
<h2 class="pokedex__specify--name" id="name"></h2>
<span class="pokedex__specify--id">ID: <span id="id"></span></span>
<p class="pokedex__specify--description" id="description"></p>
<span class="pokedex__specify--weight">Weight: <span id="weight"></span> Kilograms</span>
<span class="pokedex__specify--height">Height: <span id="height"></span> Meters</span>
<div class="pokedex__specify--abilities">
<h2 class="specify__abilities--title">Abilities</h2>
<span class="specify__abilities--span" id="firstAbility"></span>
<p id="firstAbilityDescription"></p>
<span class="specify__abilities--span" id="secondAbility"></span>
<p id="secondAbilityDescription"></p>
</div>
</div>
</main>
<script src="./src/js/index.js"></script>
</html>