From 6dff23b065bd933ff2f571d2264c86902173d40b Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Fri, 29 Sep 2017 18:36:57 -0400 Subject: 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. --- app/assets/javascripts/pokeviewer/pokemon.js.coffee | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'app/assets/javascripts') 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 @@ $ -> - $(".pc-pokemon").mouseover -> - $(this).children(".pc-data").show() - $(".pc-pokemon").mouseout -> - $(this).children(".pc-data").hide() - $(".pc-pokemon").mousemove (event) -> - $(this).children(".pc-data").offset({left: event.pageX + 16, top: event.pageY - 16}) + $(".pkv-has-hover").mouseover -> + $(this).children(".pkv-hover").show() + $(".pkv-has-hover").mouseout -> + $(this).children(".pkv-hover").hide() + $(".pkv-has-hover").mousemove (event) -> + $(this).children(".pkv-hover").offset({left: event.pageX + 16, top: event.pageY - 16}) -- cgit 1.4.1