-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
96 lines (96 loc) · 3.28 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="styles.css" />
<title>Pokémon Search App | Fredrik Borgstein</title>
</head>
<body>
<main>
<img
src="https://cdn.pixabay.com/photo/2016/08/15/00/50/pokeball-1594373_960_720.png"
alt=""
/>
<div class="search-section">
<div class="search-header">
<h1>Search for a Pokémon here</h1>
</div>
<input
type="text"
id="search-input"
placeholder="Search here"
required
/>
<button id="search-button">Search</button>
</div>
<div class="element-header"><img src="" alt="" id="sprite" /></div>
<div class="elements-box">
<div class="name">
<p class="elements-p">Name:</p>
<element class="elements" id="pokemon-name">Name</element>
</div>
<div class="id">
<p class="elements-p">ID:</p>
<element class="elements" id="pokemon-id">ID</element>
</div>
<div class="weight">
<p class="elements-p">Weight:</p>
<element class="elements" id="weight">Weight</element>
</div>
<div class="height">
<p class="elements-p">Height:</p>
<element class="elements" id="height">Height</element>
</div>
<div class="types">
<p class="elements-p">Types:</p>
<element class="elements" id="types">Types: </element>
</div>
<div class="hp">
<p class="elements-p">HP:</p>
<element class="elements" id="hp">HP</element>
</div>
<div class="attack">
<p class="elements-p">Attack:</p>
<element class="elements" id="attack">Attack</element>
</div>
<div class="defense">
<p class="elements-p">Defense:</p>
<element class="elements" id="defense">Defense</element>
</div>
<div class="special-attacks">
<p class="elements-p">Special Attack:</p>
<element class="elements" id="special-attack">Special Attack</element>
</div>
<div class="special-defenses">
<p class="elements-p">Special Defense:</p>
<element class="elements" id="special-defense"
>Special Defense</element
>
</div>
<div class="speed">
<p class="elements-p">Speed:</p>
<element class="elements" id="speed">Speed</element>
</div>
</div>
</main>
<footer>
<div class="footer-text">
This is the fifth, and final project of our
<span>Javascript: Algorithms and Data Structures</span> certification.
</p>
<p>
Whit this project, you can use either the pokemon's name or ID to search
for a Pokemon <br />
to get more information, such as stats and type.
</p>
<p>
The search function uses a API call in the background to get the data,
then transform it, and display it <br />
as seen in the final result.
</p>
</div>
</footer>
<script src="script.js"></script>
</body>
</html>