From: Stefan Lage Date: Wed, 8 May 2013 20:38:23 +0000 (-0400) Subject: nitdoc: Add a hover behavior to the mouse X-Git-Tag: v0.6~46^2~12 X-Git-Url: http://nitlanguage.org nitdoc: Add a hover behavior to the mouse When the cursor is hover a comment it display a 'hand' and disable it when it is not hover. signed-off by: Stefan Lage --- diff --git a/share/nitdoc/scripts/js-facilities.js b/share/nitdoc/scripts/js-facilities.js index 2e07202..315f7d6 100644 --- a/share/nitdoc/scripts/js-facilities.js +++ b/share/nitdoc/scripts/js-facilities.js @@ -619,6 +619,15 @@ $(document).ready(function() { reloadComment(); }); }); + + $("pre").hover( + function () { + $(this).css({'cursor' : 'hand'}); + }, + function () { + $(this).css({'cursor' : 'pointer'}); + } + ); }); /* Parse current URL and return anchor name */