-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
59 lines (55 loc) · 1.56 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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="index.css" />
<title>Pokemon</title>
</head>
<body onload="initialLoad()" style="text-align: center">
<h1>Pokemon</h1>
<div style="display: flex; flex-direction: column">
<!-- 1. INPUT SEARCH -->
<div style="margin: auto">
<form id="myForm">
<div style="display: flex">
<div>
<input
type="text"
id="search"
name="search"
placeholder="Search Pokemon"
/>
</div>
<div>
<input type="submit" value="Search" />
</div>
</div>
</form>
</div>
<!-- 2. CARD -->
<div style="margin: auto">
<div class="flip-card" style="display: none">
<div class="flip-card-inner">
<div class="flip-card-front">
<img id="pokemonImage" alt="Avatar" />
</div>
<div class="flip-card-back">
<div class="pokemonName"></div>
</div>
</div>
</div>
</div>
<!-- 3. SAVE -->
<div style="margin-top: 24px; padding-top: 24px">
<button onclick="saveToCarousel()">Save to carousel</button>
</div>
<!-- 4. SLIDE SHOW -->
<div class="carouselContainer">
<h2>Saved Pokemons</h2>
<div class="carousel">
<div><img id="savedPokemonImg" /></div>
</div>
</div>
</div>
<script src="./index.js"></script>
</body>
</html>