demo.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>jquery.bootstrap-growl Demo</title>
  5. <link rel="stylesheet" type="text/css" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
  6. </head>
  7. <body>
  8. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
  9. <script src="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
  10. <script src="jquery.bootstrap-growl.js"></script>
  11. <script type="text/javascript">
  12. $(function() {
  13. $.bootstrapGrowl("This is a test.");
  14. setTimeout(function() {
  15. $.bootstrapGrowl("This is another test.", { type: 'success' });
  16. }, 1000);
  17. setTimeout(function() {
  18. $.bootstrapGrowl("Danger, Danger!", {
  19. type: 'danger',
  20. align: 'center',
  21. width: 'auto',
  22. allow_dismiss: false
  23. });
  24. }, 2000);
  25. setTimeout(function() {
  26. $.bootstrapGrowl("Danger, Danger!", {
  27. type: 'info',
  28. align: 'left',
  29. stackup_spacing: 30
  30. });
  31. }, 3000);
  32. });
  33. </script>
  34. </body>
  35. </html>