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: | Paul Dragoonis | 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-22377@lists.php.net to get a copy of this message | ||
Commit: 8869e1b18621ac82e0b16c0272555d0c0f13f278
Author: Levi Morrison <levim@php.net> 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);
});
}
/* }}} */