Commit:    8869e1b18621ac82e0b16c0272555d0c0f13f278
Author:    Levi Morrison <[email protected]>         Thu, 5 Dec 2013 14:51:53 -0700
Parents:   b4855a271dc0daa10b78430f7b0670d9c658ebeb
Branches:  master

Link:       
http://git.php.net/?p=web/php.git;a=commitdiff;h=8869e1b18621ac82e0b16c0272555d0c0f13f278

Log:
When hovering over a note it now becomes more opaque; it transitions back to 
the previous value on leaving.

Changed paths:
  M  js/common.js


Diff:
diff --git a/js/common.js b/js/common.js
index be70dee..cb53703 100755
--- a/js/common.js
+++ b/js/common.js
@@ -288,7 +288,13 @@ $(document).ready(function() {
     $(usernotes).find('.note .tally:contains("-")').each(function() {
       var id = this.id.replace('V', '');
       var v = mapper.normalize(this.innerHTML.toInt());
-      $('#' + id).css('opacity', v);
+      var onNoteOver = function() {
+          $(this).fadeTo('fast', 1);
+      };
+      var onNoteOut = function() {
+          $(this).fadeTo('normal', v);
+      };
+      $('#' + id).css('opacity', v).hover(onNoteOver, onNoteOut);
     });
   }
 /* }}} */


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to