-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample_minimalism.html
52 lines (47 loc) · 1.48 KB
/
example_minimalism.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE html>
<html>
<head>
<title>Minimalism plugin - Notification JS</title>
<link rel="shortcut icon" href="https://superzombi.github.io/Notification_JS/imgs/notification-logo.svg" type="image/svg+xml">
<link href="https://superzombi.github.io/Notification_JS/notifications.css" rel="stylesheet">
<link href="https://superzombi.github.io/Notification_JS/plugins/minimalism.css" rel="stylesheet">
<script src="https://superzombi.github.io/Notification_JS/notifications.js"></script>
<style type="text/css">
.notifications{
position: absolute;
bottom: 0;
padding: 20px;
width: 420px;
}
#notification1{
left: 2px;
background: white;
}
#notification2{
right: 2px;
background: black;
}
</style>
</head>
<body>
<div class="notifications" id="notification1"></div>
<div class="notifications" id="notification2"></div>
<script type="text/javascript">
function show_more(){
alert("here")
}
window.onload = function(){
notice1 = new Notifications('#notification1');
notice1.Warning("Hello world!", false)
notice1.Error("Hello world!", false, [['OK', show_more], 'Cancel'])
notice1.Success("Hello world!", false)
notice1.Info("Hello world!", false)
notice2 = new Notifications('#notification2');
notice2.Warning("Hello world!", false)
notice2.Error("Hello world!", false, [['OK', show_more], 'Cancel'])
notice2.Success("Hello world!", false)
notice2.Info("Hello world!", false)
}
</script>
</body>
</html>