blob: a218fd320f3c6daf89e1567912d8402d5ff3ce94 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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>
|