-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
66 lines (61 loc) · 2.65 KB
/
index.html
File metadata and controls
66 lines (61 loc) · 2.65 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="title" content="Typing Speed | Practice Typing.">
<meta name="description" content="Check Your Typing Speed also improve your speed without seeing keyboard.">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://praweensoni.github.io/notification-Style/">
<meta property="og:title" content="Toasted Notification.">
<meta property="og:description" content="Easy to implement to your project Toasted Notification with some line of code.">
<meta property="og:image" content="https://praweensoni.github.io/notification-Style/assets/demo.png">
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="https://praweensoni.github.io/notification-Style/">
<meta property="twitter:title" content="Toasted Notification.">
<meta property="twitter:description" content="Easy to implement to your project toasted Notification with some line of code.">
<meta property="twitter:image" content="https://praweensoni.github.io/notification-Style/assets/demo.png">
<title>Toast Notification</title>
<!-- Here Toasted Notification link was added -->
<script src="https://praweensoni.github.io/notification-Style/toast.min.js"></script>
</head>
<body class="tnpksBtns">
<button onclick="showToast()" class="tnpksBtn" id="success">Default Button</button>
<button onclick="sucessToast()" class="tnpksBtn" id="success">Success</button>
<button onclick="errorToast()" class="tnpksBtn" id="error">Error</button>
<button onclick="warningToast()" class="tnpksBtn" id="warning">warning</button>
<button onclick="infoToast()" class="tnpksBtn" id="info">Info</button>
<script>
function sucessToast() {
showToast({
type: "success",
message: "Data saved successfully!",
duration: 3000, // Duration in milliseconds
customTitle: "Great!",
});
}
const errorToast = () => {
showToast({
type: "error",
message: "Something went wrong!",
duration: 30000,
});
};
const warningToast = () => {
showToast({
type: "warning",
message: "Warning de rha hai bhai.",
});
};
const infoToast = () => {
showToast({
type: "info",
message: "Info de rha hai bhai.",
});
};
</script>
</body>
</html>