-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
79 lines (68 loc) · 2.11 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Pokemon Search</title>
<link rel="icon" href="favicon.ico" type="image/x-icon">
</head>
<body>
<main>
<section id="mainContent">
</section>
</main>
</body>
<template id="searchPageTemplate">
<div class="searchPage">
<label>Search a pokemon:</label>
<input id="searchbar" name="searchbar" type="search">
<hr />
<div id="searchResultsContainer">
</div>
</div>
<style>
.searchPage label {
font-size: 1.25em;
margin-bottom: 15px;
display: block;
}
</style>
</template>
<template id="searchResultTemplate">
<a role="button" href="#">
<div>
<span class="pokemonName"></span>
</div>
</a>
</template>
<template id="pokemonDetailsPageTemplate">
<div id="pokemonDetailsPage">
<button id="backToSearchButton">Back to search</button>
<hr />
<div id="pokemonDetailsContainer">
<div id="pokemonDetailsHeader">
<h1 id="pokemonName"></h1>
<img id="pokemonSprite" src="" alt="">
</div>
<div id="pokemonDetails">
</div>
</div>
</div>
<style>
#pokemonDetails {
margin-top: 15px;
}
#pokemonDetails > * {
margin-bottom: 10px;
display: block;
}
</style>
</template>
<template id="pokemonDetailsCollapseTemplate">
<details>
<summary id="pokemonDetailsCollapseSummary"></summary>
<div id="pokemonDetailsCollapseContent"></div>
</details>
</template>
<script src="main.js" type="module"></script>
<script src="modules/pokemonHandler.js" type="module"></script>
</html>