Skip to content

Instantly share code, notes, and snippets.

@matheusagcosta
Created April 29, 2015 13:47
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 matheusagcosta/697f7166a54f29c3c5ba to your computer and use it in GitHub Desktop.
Save matheusagcosta/697f7166a54f29c3c5ba to your computer and use it in GitHub Desktop.
Flash Message Toggle
$(function() {
var flashCallback;
flashCallback = function() {
return $("#flash-messages").fadeOut();
};
$("#flash-messages-close").bind('click', (function(_this) {
return function(ev) {
return $("#flash-messages").fadeOut();
};
})(this));
return setTimeout(flashCallback, 3000);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment