diff options
| author | Scott Ostler <scottbot9000@gmail.com> | 2010-09-04 19:35:19 -0400 |
|---|---|---|
| committer | Scott Ostler <scottbot9000@gmail.com> | 2010-09-04 19:35:19 -0400 |
| commit | 1053ccd150312d84cda15a2fd9b5cf690a00af3b (patch) | |
| tree | 59ef011a7bc991e0cba473bfa9e975adf7eeaadd /static/js/fullscreen.js | |
| parent | ccc5d24b9c347d5727e2d7a349f75a378482511e (diff) | |
Add mouse-based fadeout for fullscreen logo
Diffstat (limited to 'static/js/fullscreen.js')
| -rw-r--r-- | static/js/fullscreen.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/static/js/fullscreen.js b/static/js/fullscreen.js index 374fd90..573cabe 100644 --- a/static/js/fullscreen.js +++ b/static/js/fullscreen.js @@ -168,3 +168,15 @@ function login() { }); }}); })(jQuery); + +var LogoFadeDelay = 3000; +var PrevMouseCoord = [-1, -1]; + +$(function() { + $(document).mousemove(function(e) { + if (e.pageX == PrevMouseCoord[0] && e.pageY == PrevMouseCoord[1]) + return; + PrevMouseCoord = [e.pageX, e.pageY]; + $('#memelogo').stop(true, false).animate({opacity: 1.0}, "fast").delay(LogoFadeDelay).animate({opacity: 0}, "slow"); + }); +});
\ No newline at end of file |
