1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <!doctype html>
- <html lang="en">
- <head>
- <meta http-equiv="Content-type" content="text/html; charset=utf-8">
- <title>Bootstrap Toast demo</title>
- <script src="https://code.jquery.com/jquery-3.6.0.slim.min.js"></script>
- <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
- <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
- <script src="bootstraptoast.js"></script>
- <style>
- #toast-parent {
- position: fixed;
- top: 20px;
- z-index: 99;
- width: 100%;
- }
- </style>
- </head>
- <body>
- <div class="jumbotron">
- <div class="container">
- <h2 class="display-4">TBootstrapToastWidget demo</h2>
- <p class="lead">This is simple demo where a <em>TBootstrapToastWidget</em> class is used to show a message toast
- </p>
- </div>
- </div>
- <hr class="my-4">
- <div id="toast-parent" class="d-flex justify-content-center">
- </div>
- <div class="container py-5">
- <div class="d-flex justify-content-center">
- <button id="btnShowToast" class="btn btn-primary">Show toast</button>
- </div>
- </div>
- <script>
- rtl.showUncaughtExceptions=true;
- window.addEventListener("load", rtl.run);
- </script>
- </body>
- </html>
|