From 147eedfc7eed65f806c138777797c3322460f35a Mon Sep 17 00:00:00 2001 From: KubMakCZ Date: Fri, 15 May 2026 11:29:56 +0200 Subject: [PATCH] pokefinder --- 44_autocomplete/script_api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/44_autocomplete/script_api.js b/44_autocomplete/script_api.js index 515545c..5b1203f 100644 --- a/44_autocomplete/script_api.js +++ b/44_autocomplete/script_api.js @@ -1,4 +1,4 @@ -const pokemoni = [] +let pokemoni = [] let dataNactena = false; const input = document.getElementById("search") @@ -8,7 +8,7 @@ function normalizujJmenoPokemona(name) { return name .split("-") .map(cast => cast.charAt(0).toUpperCase() + cast.slice(1)) - .join("-"); + .join(" "); } fetch("https://pokeapi.co/api/v2/pokemon?limit=20000&offset=0")