-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
55 lines (55 loc) · 2.32 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Pokedex-JS | By Paul Zavalza</title>
<meta name="description" content="A simple pokedex to carry anywhere">
<meta name="author" content="Paul Zavalza">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/skeleton.css">
<link rel="stylesheet" href="css/general.css">
<link rel="stylesheet" href="font-awesome-4.7.0/css/font-awesome.min.css">
<script type="text/javascript" src="pokedex.js"></script>
<script type="text/javascript">
fetch("https://raw.githubusercontent.com/Biuni/PokemonGO-Pokedex/master/pokedex.json")
.then(function(response) { return response.json(); })
.then(function(data) {
Pokedex.setPokemons(data.pokemon);
Pokedex.showPokemonCard();
});
</script>
</head>
<body>
<div class="pokedex">
<h1 class="pokedex-title">Pokedex-JS</h1>
<div class="pokedex-navigation">
<i class="fa fa-arrow-left" aria-hidden="true" onclick="Pokedex.decrementIndex();"></i>
<input type="number" id="pokemonNumber" class="pokedex-navigation-index" onchange="Pokedex.setIndex(this.value);">
<i class="fa fa-arrow-right" aria-hidden="true" onclick="Pokedex.incrementIndex();"></i>
</div>
<div class="pokedex-pokemon">
<div id="pokemonCard" class="pokedex-pokemon-card">
<img id="pokemonImage">
<p id="pokemonName" class="pokedex-pokemon-name"></p>
<button onclick="Pokedex.showPokemonDetails();">See details</button>
</div>
<div id="pokemonDetails" class="pokedex-pokemon-details">
<p id="pokemonType"></p>
<p id="pokemonHeight"></p>
<p id="pokemonWeight"></p>
<p id="pokemonCandy"></p>
<p id="pokemonCandyCount"></p>
<p id="pokemonEgg"></p>
<p id="pokemonSpawnChance"></p>
<p id="pokemonAvgSpawns"></p>
<p id="pokemonSpawnTime"></p>
<p id="pokemonMultipliers"></p>
<p id="pokemonWeaknesses"></p>
<button onclick="Pokedex.showPokemonCard();">Close details</button>
</div>
</div>
<div id="pokedexCollage" class="pokedex-collage"></div>
</div>
</body>
</html>