diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-09-30 23:27:42 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-09-30 23:27:42 -0400 |
commit | 34830f2e96e4213e8acb10ea457244c7523aeb5a (patch) | |
tree | 27f328983a5f23cccea1e9b265b426d41cc1621d /app/assets/javascripts | |
parent | 9c022576fa053fd32aaebc7acb2bb44884a623d7 (diff) | |
download | pokeviewer-34830f2e96e4213e8acb10ea457244c7523aeb5a.tar.gz pokeviewer-34830f2e96e4213e8acb10ea457244c7523aeb5a.tar.bz2 pokeviewer-34830f2e96e4213e8acb10ea457244c7523aeb5a.zip |
Emerald animated sprites only loop on demand
It was a little annoying that the animated sprites for Pokémon in Emerald would infinitely loop without much delay between the loops, so the GIFs were edited such that they only play once, and some JavaScript was added such that mousing over the sprite makes it play again.
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r-- | app/assets/javascripts/pokeviewer/pokemon.js.coffee | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/assets/javascripts/pokeviewer/pokemon.js.coffee b/app/assets/javascripts/pokeviewer/pokemon.js.coffee index 28a1ec1..a6fd326 100644 --- a/app/assets/javascripts/pokeviewer/pokemon.js.coffee +++ b/app/assets/javascripts/pokeviewer/pokemon.js.coffee | |||
@@ -5,3 +5,5 @@ $ -> | |||
5 | $(this).children(".pkv-hover").hide() | 5 | $(this).children(".pkv-hover").hide() |
6 | $(".pkv-has-hover").mousemove (event) -> | 6 | $(".pkv-has-hover").mousemove (event) -> |
7 | $(this).children(".pkv-hover").offset({left: event.pageX + 16, top: event.pageY - 16}) | 7 | $(this).children(".pkv-hover").offset({left: event.pageX + 16, top: event.pageY - 16}) |
8 | $(".in-emerald .pokemon-image img").mouseover -> | ||
9 | $(this).attr("src", $(this)[0].src) | ||