-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
151 lines (124 loc) · 3.66 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./style.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.4/css/all.css" integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous">
<title>Document</title>
<script src="https://cdn.jsdelivr.net/npm/lazy-javascript@1.0.8/lazy.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
</head>
<body>
<section class="hero is-primary columns is-offset-one-quarter is-half">
<div class="hero-body" style="text-align:center">
<p class="title">
PokeGenerator
</p>
<p class="subtitle">
Created with Bulma CSS and PokeAPI
</p>
</div>
</section>
<div class="menu">
<div class="pokemons">
<h1 class="is-size-5 p-3">Please, select a pokemon</h1>
<label>Pokemon:</label>
<span class="select is-primary">
<select id="cmbPokemon" name="combobox" class="select is-primary">
<option value="0">Selecione um pokemon</option>
</select>
</span>
<span
class="tooltip has-tooltip-top has-tooltip-multiline"
data-tooltip="Choose a pokemon to your journey!"
>
<i class="fa fa-question-circle"></i>
</span>
</div>
<div id="card" class="box card" style="display: none;">
<section class="section1">
<label id="name" class="is-size-3"></label>
<label>
<strong>Type:</strong>
<span id="type">
</span>
<span class="circle">
</span>
</label>
<label>
<strong>Weight:</strong>
<span id="weight">
</span>
</label>
<div class="atributes">
<label>
<strong>HP:</strong>
<span id="hp">
</span>
</label>
<label>
<strong>ATK:</strong>
<span id="atk">
</span>
</label>
<label>
<strong>DEF:</strong>
<span id="def">
</span>
</label>
<label>
<strong>SPECIAL:</strong>
<span id="special">
</span>
</label>
</div>
<div>
<label class="is-size-5">Abilities:</label>
</div>
<div class="mb-4">
<label>
<span id="abl1" class="tag has-text-white"></span>
</label>
<label>
<span id="abl2" class="tag has-text-white"></span>
</label>
</div>
<div>
<button
id="btnAdd"
class="button is-primary"
onclick="addToPokedex(this)"
>
Adicionar
</button>
<span
class="tooltip has-tooltip-top has-tooltip-multiline"
data-tooltip="Now you have to add at least 3 pokemons to your pokedex!"
>
<i class="fa fa-question-circle"></i>
</span>
</div>
</section>
<section class="section2">
<div class="image lazyload">
<img id="image" data-src=""/>
</div>
</section>
</div>
</div>
<section id="pokeList" class="menu2">
</section>
<div class="btnConfirm">
<button
id="btnConfirm"
class="button is-primary"
style="display: none;"
>
Confirm
</button>
</div>
<script src="./script.js"></script>
</body>
</html>