Skip to content

Commit

Permalink
Asset icons for Pokemon stats
Browse files Browse the repository at this point in the history
  • Loading branch information
sLoPPydrive committed Jan 6, 2018
1 parent 0f3c750 commit 8a87fa0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion static/js/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ function countMarkers(map) { // eslint-disable-line no-unused-vars

for (i = 0; i < pkmnCount.length; i++) {
if (pkmnCount[i] && pkmnCount[i].Count > 0) {
var pokemon_icon = get_pokemon_raw_icon_url({'pokemon_id': pkmnCount[i].ID})
pokeCounts.push(
[
'<img class="pokemonListString" src=\'static/icons/' + pkmnCount[i].ID + '.png\' />',
'<img class="pokemonListString pokemon-icon" src=\'' + pokemon_icon + '\' />',
'<a href=\'http://pokemon.gameinfo.io/en/pokemon/' + pkmnCount[i].ID + '\' target=\'_blank\' title=\'View in Pokédex\' style=\'color: black;\'>' + pkmnCount[i].Name + '</a>',
pkmnCount[i].Count,
(Math.round(pkmnCount[i].Count * 100 / pkmnTotal * 10) / 10) + '%'
Expand Down

0 comments on commit 8a87fa0

Please sign in to comment.