nitdoc: Add a hover behavior to the mouse
authorStefan Lage <lagestfan@gmail.com>
Wed, 8 May 2013 20:38:23 +0000 (16:38 -0400)
committerStefan Lage <lagestfan@gmail.com>
Fri, 24 May 2013 02:26:50 +0000 (22:26 -0400)
When the cursor is hover a comment  it display a 'hand' and disable it
when it is not hover.

signed-off by: Stefan Lage <lagestfan@gmail.com>

share/nitdoc/scripts/js-facilities.js

index 2e07202..315f7d6 100644 (file)
@@ -619,6 +619,15 @@ $(document).ready(function() {
                        reloadComment();\r
                });\r
        });\r
+\r
+       $("pre").hover(\r
+               function () {\r
+                       $(this).css({'cursor' : 'hand'});       \r
+               },\r
+               function () {\r
+                       $(this).css({'cursor' : 'pointer'});    \r
+               }\r
+       );\r
 });\r
 \r
 /* Parse current URL and return anchor name */\r