about summary refs log tree commit diff stats
path: root/app/assets/javascripts
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r--app/assets/javascripts/pokeviewer/pokemon.js.coffee12
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})