blob: 4b6eb2b500edc309de233950f4e5e3082493d373 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
- if alert || notice
- text = alert || notice
%div{:style => "display:none", :id => "flash_container"}
.container
%center
%h4= text
:javascript
$(function(){
$("#flash_container").slideDown("slow");
$("#flash_container").click(function(){
$(this).slideUp("slow");
});
setTimeout("hideFlash()",2000);
});
function hideFlash(){
$("#flash_container").slideUp("slow");
}
|