Run ❯
zig
.
com
Result Size:
1260 x 277
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html lang="en"> <head> <title>Bootstrap Example</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="../../cdn.jsdelivr.net/npm/bootstrap%404.6.2/dist/css/bootstrap.min.css"> <script src="../../cdn.jsdelivr.net/npm/jquery%403.7.1/dist/jquery.slim.min.js"></script> <script src="../../cdn.jsdelivr.net/npm/popper.js%401.16.1/dist/umd/popper.min.js"></script> <script src="../../cdn.jsdelivr.net/npm/bootstrap%404.6.2/dist/js/bootstrap.bundle.min.js"></script> </head> <body> <div class="container mt-3"> <h3>Tooltip Options</h3> <p>The <strong>autohide</strong> option hides the toast by default.</p> <p>In this example, we use data-autohide="false" to show the toast by default. You can close it by clicking on the close (x) icon inside the toast header.</p> <div class="toast"> <div class="toast-header"> <strong class="mr-auto text-primary">Toast Header</strong> <small class="text-muted">5 mins ago</small> <button type="button" class="ml-2 mb-1 close" data-dismiss="toast">×</button> </div> <div class="toast-body"> Some text inside the toast body </div> </div> </div> <script> $(document).ready(function () { $('.toast').toast({ autohide: false }); $('.toast').toast('show'); }); </script> </body> <!-- /bootstrap4/tryit.asp?filename=trybs_ref_js_toast_autohide&stacked=h by HTTrack Website Copier/3.x [XR&CO'2014], Thu, 06 Feb 2025 19:45:49 GMT --> </html>