index.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta http-equiv="Content-type" content="text/html; charset=utf-8">
  5. <title>Bootstrap Toast demo</title>
  6. <script src="https://code.jquery.com/jquery-3.6.0.slim.min.js"></script>
  7. <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
  8. <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>
  9. <script src="bootstraptoast.js"></script>
  10. <style>
  11. #toast-parent {
  12. position: fixed;
  13. top: 20px;
  14. z-index: 99;
  15. width: 100%;
  16. }
  17. </style>
  18. </head>
  19. <body>
  20. <div class="jumbotron">
  21. <div class="container">
  22. <h2 class="display-4">TBootstrapToastWidget demo</h2>
  23. <p class="lead">This is simple demo where a <em>TBootstrapToastWidget</em> class is used to show a message toast
  24. </p>
  25. </div>
  26. </div>
  27. <hr class="my-4">
  28. <div id="toast-parent" class="d-flex justify-content-center">
  29. </div>
  30. <div class="container py-5">
  31. <div class="d-flex justify-content-center">
  32. <button id="btnShowToast" class="btn btn-primary">Show toast</button>
  33. </div>
  34. </div>
  35. <script>
  36. rtl.showUncaughtExceptions=true;
  37. window.addEventListener("load", rtl.run);
  38. </script>
  39. </body>
  40. </html>