03alert.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <title>Blasting off with Bootstrap</title>
  5. <meta charset="utf-8" />
  6. <meta http-equiv="X-UA-COMPATIBLE" content="IE=Edge" />
  7. <meta name="viewport" content="width=device-width, initial-scale=1" />
  8. <link rel="stylesheet" href="../css/bootstrap.min.css"/>
  9. <!--[if lt IE 9]>
  10. <script src="../js/html5shiv.3-7-0.js"></script>
  11. <script src="../js/respond.1-4-2.min.js"></script>
  12. <![endif]-->
  13. </head>
  14. <body>
  15. <div class="container">
  16. <div class="alert alert-info">
  17. Funds are being transferred.
  18. </div>
  19. <div class="alert alert-warning">
  20. Something seems suspicious
  21. </div>
  22. <div class="alert alert-danger">
  23. Oh no, someone stopped the transfer
  24. </div>
  25. <div class="alert alert-success alert-dismissable">
  26. <a class="alert-link" href="http://en.wikipedia.org/wiki/Chuck_Norris_facts">Chuck Norris</a> caught them, the funds have been transferred correctly.
  27. <button type="button" class="close" data-dismiss="alert">&times;</button>
  28. </div>
  29. <!-- https://ajax.googleapis.com/ajax/libs/jquery/1.11.1.jquery.min.js -->
  30. <script src="../js/jquery-1.11.2.min.js"></script>
  31. <script src="../js/bootstrap.js"></script>
  32. <script type="text/javascript">
  33. $('.alert').on('close.bs.alert', function () {
  34. console.log('Closing alert');
  35. });
  36. $('.alert').on('closed.bs.alert', function () {
  37. console.log('Alert closed');
  38. });
  39. </script>
  40. </div>
  41. </body>
  42. </html>