Skip to content

Commit

Permalink
Fixed Image Source Link.
Browse files Browse the repository at this point in the history
Fixed Image Source Link, Changed Link because old link is expired, and added new link with Sprites.
  • Loading branch information
Omar Ashraf authored Apr 18, 2021
1 parent 4dd2f9d commit 5ac19e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pokedex/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const createPokemonCard = (pokemon) => {

const pokemonInnerHTML = `
<div class="img-container">
<img src="https://pokeres.bastionbot.org/images/pokemon/${pokemon.id}.png" alt="">
<img src="https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/${pokemon.id}.png"" alt="${name}">
</div>
<div class="info">
<span class="number">#${id}</span>
Expand All @@ -61,4 +61,4 @@ const createPokemonCard = (pokemon) => {
poke_container.appendChild(pokemonEl)
}

fetchPokemons()
fetchPokemons()

0 comments on commit 5ac19e4

Please sign in to comment.