Skip to content

Instantly share code, notes, and snippets.

@samullen
Created August 1, 2010 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samullen/503386 to your computer and use it in GitHub Desktop.
Save samullen/503386 to your computer and use it in GitHub Desktop.
mp.js
if (!RegExp(/^\s*$/).test($("#message-popdown").html())) {
$("#message-popdown").slideDown("slow", function() {
var that = $(this);
setTimeout(function() {that.slideUp();}, 5000);
});
}
$("#message-popdown").click(function() {
$(this).slideUp();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment