diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-09-29 18:36:57 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-09-29 18:36:57 -0400 |
commit | 6dff23b065bd933ff2f571d2264c86902173d40b (patch) | |
tree | 1b7853fce373897068d244cd2ae1487bf49cef6e /app/assets/javascripts | |
parent | dc4a4d2f9a338e3d3560c514b0c97cb8bfea36b1 (diff) | |
download | pokeviewer-6dff23b065bd933ff2f571d2264c86902173d40b.tar.gz pokeviewer-6dff23b065bd933ff2f571d2264c86902173d40b.tar.bz2 pokeviewer-6dff23b065bd933ff2f571d2264c86902173d40b.zip |
Added ribbons
Gift ribbons currently partially work: the correct ribbon image and name is shown, but the ribbon description is not yet extracted from the game and thus is just blank.
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r-- | app/assets/javascripts/pokeviewer/pokemon.js.coffee | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/assets/javascripts/pokeviewer/pokemon.js.coffee b/app/assets/javascripts/pokeviewer/pokemon.js.coffee index f82f196..28a1ec1 100644 --- a/app/assets/javascripts/pokeviewer/pokemon.js.coffee +++ b/app/assets/javascripts/pokeviewer/pokemon.js.coffee | |||
@@ -1,7 +1,7 @@ | |||
1 | $ -> | 1 | $ -> |
2 | $(".pc-pokemon").mouseover -> | 2 | $(".pkv-has-hover").mouseover -> |
3 | $(this).children(".pc-data").show() | 3 | $(this).children(".pkv-hover").show() |
4 | $(".pc-pokemon").mouseout -> | 4 | $(".pkv-has-hover").mouseout -> |
5 | $(this).children(".pc-data").hide() | 5 | $(this).children(".pkv-hover").hide() |
6 | $(".pc-pokemon").mousemove (event) -> | 6 | $(".pkv-has-hover").mousemove (event) -> |
7 | $(this).children(".pc-data").offset({left: event.pageX + 16, top: event.pageY - 16}) | 7 | $(this).children(".pkv-hover").offset({left: event.pageX + 16, top: event.pageY - 16}) |