<!DOCTYPE html> <html lang="en"> <head> <title>Blasting off with Bootstrap</title> <meta charset="utf-8" /> <meta http-equiv="X-UA-COMPATIBLE" content="IE=Edge" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <link rel="stylesheet" href="../css/bootstrap.min.css"/> <!--[if lt IE 9]> <script src="../js/html5shiv.3-7-0.js"></script> <script src="../js/respond.1-4-2.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="alert alert-info"> Funds are being transferred. </div> <div class="alert alert-warning"> Something seems suspicious </div> <div class="alert alert-danger"> Oh no, someone stopped the transfer </div> <div class="alert alert-success alert-dismissable"> <a class="alert-link" href="http://en.wikipedia.org/wiki/Chuck_Norris_facts">Chuck Norris</a> caught them, the funds have been transferred correctly. <button type="button" class="close" data-dismiss="alert">×</button> </div> <!-- https://ajax.googleapis.com/ajax/libs/jquery/1.11.1.jquery.min.js --> <script src="../js/jquery-1.11.2.min.js"></script> <script src="../js/bootstrap.js"></script> <script type="text/javascript"> $('.alert').on('close.bs.alert', function () { console.log('Closing alert'); }); $('.alert').on('closed.bs.alert', function () { console.log('Alert closed'); }); </script> </div> </body> </html>