Created
December 8, 2010 14:21
-
-
Save seb/733333 to your computer and use it in GitHub Desktop.
header code for twitter notification bar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" charset="utf-8"> | |
$(document).ready(function () { | |
<%= "flash('#{flash[:notice]}')" if flash[:notice] %> | |
}); | |
function flash(message) { | |
$('#flash').html(message).slideDown("slow").delay(2500); | |
$('#flash').html(message).slideUp("slow"); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment