Skip to content

Commit

Permalink
seasonal graphic updates
Browse files Browse the repository at this point in the history
  • Loading branch information
yashrajbharti committed Jan 28, 2024
1 parent 785887d commit 2628f5d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ const buildData = (data) => {
: team.pokemon.name;
stage1[
a
].src = `https://img.pokemondb.net/sprites/home/normal/${pokemonName.toLowerCase()}.png`;
].src = `https://img.pokemondb.net/sprites/home/normal/${pokemonName
.replace(/_NORMAL/i, "")
.toLowerCase()}.png`;
shinyMap.get(team.pokemon.name) && stage1[a].classList.add("shiny");
!shinyMap.has(team.pokemon.name) &&
stage1[a]?.closest("div").classList.remove("encounterable");
Expand All @@ -149,7 +151,9 @@ const buildData = (data) => {
: team.pokemon.name;
stage2[
b
].src = `https://img.pokemondb.net/sprites/home/normal/${pokemonName.toLowerCase()}.png`;
].src = `https://img.pokemondb.net/sprites/home/normal/${pokemonName
.replace(/_NORMAL/i, "")
.toLowerCase()}.png`;
shinyMap.get(team.pokemon.name) && stage2[b].classList.add("shiny");
!shinyMap.has(team.pokemon.name) &&
stage2[b]?.closest("div").classList.remove("encounterable");
Expand All @@ -167,7 +171,9 @@ const buildData = (data) => {
: team.pokemon.name;
stage3[
c
].src = `https://img.pokemondb.net/sprites/home/normal/${pokemonName.toLowerCase()}.png`;
].src = `https://img.pokemondb.net/sprites/home/normal/${pokemonName
.replace(/_NORMAL/i, "")
.toLowerCase()}.png`;
shinyMap.get(team.pokemon.name) && stage3[c].classList.add("shiny");
!shinyMap.has(team.pokemon.name) &&
stage3[c]?.closest("div").classList.remove("encounterable");
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

.chart-container {
display: grid;
grid-template-columns: repeat(7, 1fr);
grid-template-columns: repeat(6, 1fr);
gap: 20px;
}

Expand Down

0 comments on commit 2628f5d

Please sign in to comment.