com web/php: When hovering over a note it now becomes more opaque; it transitions back to the previous value on leaving.: js/common.js

From: Date: Thu, 05 Dec 2013 21:51:53 +0000
Subject: com web/php: When hovering over a note it now becomes more opaque; it transitions back to the previous value on leaving.: js/common.js
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-17413@lists.php.net to get a copy of this message
Commit: ca8e064f67522ef8fd8b813c43f5d4f5cb7e6cec Author: Levi Morrison <levim@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); }); } /* }}} */

« previous php.webmaster (#17413) next »