|
|
@ -1,4 +1,4 @@ |
|
|
const pokemoni = [] |
|
|
|
|
|
|
|
|
let pokemoni = [] |
|
|
let dataNactena = false; |
|
|
let dataNactena = false; |
|
|
|
|
|
|
|
|
const input = document.getElementById("search") |
|
|
const input = document.getElementById("search") |
|
|
@ -8,7 +8,7 @@ function normalizujJmenoPokemona(name) { |
|
|
return name |
|
|
return name |
|
|
.split("-") |
|
|
.split("-") |
|
|
.map(cast => cast.charAt(0).toUpperCase() + cast.slice(1)) |
|
|
.map(cast => cast.charAt(0).toUpperCase() + cast.slice(1)) |
|
|
.join("-"); |
|
|
|
|
|
|
|
|
.join(" "); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
fetch("https://pokeapi.co/api/v2/pokemon?limit=20000&offset=0") |
|
|
fetch("https://pokeapi.co/api/v2/pokemon?limit=20000&offset=0") |
|
|
|