Commit:    ca8e064f67522ef8fd8b813c43f5d4f5cb7e6cec
Author:    Levi Morrison <le...@php.net>         Thu, 5 Dec 2013 14:51:53 -0700
Parents:   dfb37fa3d010d58d89ca057b92206848a127e190
Branches:  master

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

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