-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtoast.html
32 lines (26 loc) · 1 KB
/
toast.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="/toast.css">
<script src="https://kit.fontawesome.com/b3f38c3fea.js" crossorigin="anonymous"></script>
<title>Toast Notification</title>
</head>
<body>
<div class="container">
<h1>Toast Notifications</h1>
<div class="buttons">
<button onclick="showToast(successMsg)">Success</button>
<button onclick="showToast(errorMsg)">Error</button>
<button onclick="showToast(invalidMsg)">Invalid</button>
</div>
</div>
<div id="toastBox"></div>
<script src="/toast.js"></script>
</body>
</html>