Guest User

Untitled

a guest
Apr 16th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. ;(function($) {
  2. $.fn.fadeOutSoon = function(when, length) {
  3. if (typeof when == "undefined") when = 5000;
  4. if (typeof length == "undefined") length = 1000;
  5. var $this = $(this);
  6. setTimeout(function() {
  7. $this.fadeOut(length)
  8. }, when);
  9. return $this;
  10. };
  11. })(jQuery);
Add Comment
Please, Sign In to add comment