diff options
Diffstat (limited to 'static')
| -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 |
