forked from longlostnick/bootstrap-growl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
42 lines (34 loc) · 1.35 KB
/
demo.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css">
</head>
<body>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="http://twitter.github.com/bootstrap/assets/js/bootstrap-alert.js"></script>
<script src="jquery.bootstrap-growl.js"></script>
<script type="text/javascript">
$(function() {
$.bootstrapGrowl("This is a test.");
setTimeout(function() {
$.bootstrapGrowl("This is another test.", { type: 'success' });
}, 1000);
setTimeout(function() {
$.bootstrapGrowl("Danger, Danger!", {
type: 'error',
align: 'center',
width: 'auto',
allow_dismiss: false
});
}, 2000);
setTimeout(function() {
$.bootstrapGrowl("Danger, Danger!", {
type: 'info',
align: 'left',
stackup_spacing: 30
});
}, 3000);
});
</script>
</body>
</html>