diff options
Diffstat (limited to 'bootstrap-v5-toaster/sample.html')
| -rw-r--r-- | bootstrap-v5-toaster/sample.html | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/bootstrap-v5-toaster/sample.html b/bootstrap-v5-toaster/sample.html new file mode 100644 index 0000000..a218fd3 --- /dev/null +++ b/bootstrap-v5-toaster/sample.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html lang="en"> + +<head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <link rel="stylesheet" href="bootstrap.css"> + <title>Bootstrap 5 Toaster</title> +</head> + +<body> + <script src="bootstrap.js"></script> + <script src="toaster.js"></script> + <script> + const toaster = new Toaster(); + toaster.error("Error", "Something failed"); + toaster.error("Something failed"); + toaster.success("Success", "Something succeded", false); + toaster.info("You should know", "Something informational", 5000); + </script> +</body> + +</html>
\ No newline at end of file |
