index.html 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta http-equiv="Content-type" content="text/html; charset=utf-8">
  5. <title>Bulma Toast demo</title>
  6. <link href="bulma.min.css" rel="stylesheet">
  7. <script src="bulma-toast.min.js"></script>
  8. <script src="bulmatoast.js"></script>
  9. <style>
  10. #toast-parent {
  11. position: fixed;
  12. top: 20px;
  13. z-index: 99;
  14. width: 100%;
  15. }
  16. </style>
  17. </head>
  18. <body>
  19. <div class="hero">
  20. <div class="hero-body ">
  21. <h2 class="title is-4">TBulmaToastWidget demo</h2>
  22. <p class="subtitle">This is simple demo where a <em>TBulmaToastWidget</em> class is used to show a message toast
  23. </p>
  24. </div>
  25. </div>
  26. <hr class="my-4">
  27. <div id="toast-parent" >
  28. </div>
  29. <div class="block">
  30. <div class="is-flex is-justify-content-center">
  31. <button id="btnShowToast" class="button is-primary">Show toast</button>
  32. </div>
  33. </div>
  34. <script>
  35. rtl.showUncaughtExceptions=true;
  36. window.addEventListener("load", rtl.run);
  37. </script>
  38. </body>
  39. </html>