This repository has been archived by the owner on May 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
/
test.html
124 lines (113 loc) · 3.18 KB
/
test.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery Notify bar</title>
<link rel="stylesheet" href="css/jquery.notifyBar.css">
<style type="text/css">
.custom {
font-size:20px;
color:white;
font-family: "Times New Roman", Times, serif;
font-style:italic;
text-transform:uppercase;
background:black url("bg.png") repeat-x top center;
}
button {
display: inline-block;
}
</style>
</head>
<body>
<h1>Notify Bar test page</h1>
<p>
<a href="http://www.whoop.ee/posts/2013-04-05-the-resurrection-of-jquery-notify-bar/">Project home</a>
<a href="http://github.com/dknight/jQuery-Notify-bar">Download the source</a>
</p>
<div>
Default style with no message<br>
<button id="common">Test</button>
</div>
<p>
Error style<br>
<button id="error">Test</button>
</p>
<p>
Success style<br>
<button id="success">Test</button>
</p>
<p>
Warning style<br>
<button id="warning">Test</button>
</p>
<p>
Custom style<br>
<button id="custom">Test</button>
</p>
<p>
Close button<br>
<button id="close">Test</button>
</p>
<p>
Test events<br>
<button id="events">Test</button>
<div id="onBeforeShow"></div>
<div id="onShow"></div>
<div id="onBeforeHide"></div>
<div id="onHide"></div>
</p>
<p>
Test postion bottom<br>
<button id="position">Test</button>
</p>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="jquery.notifyBar.js"></script>
<script>
$(function() {
$.notifyBar({
html: "Autostart"
});
$("#common").click(function () {
$.notifyBar();
});
$("#error").click(function () {
$.notifyBar({ cssClass: "error", html: "Error occurred!" });
});
$("#success").click(function () {
$.notifyBar({ cssClass: "success", html: "Your data has been changed!" });
});
$("#warning").click(function() {
$.notifyBar({ cssClass: "warning", html: "Settings aren't changed!" });
})
$("#custom").click(function () {
$.notifyBar({ cssClass: "custom", html: "Your data has been changed!" });
});
$("#close").click(function () {
$.notifyBar({ html: "Click 'close' to hide notify bar", close: true, waitingForClose: true, closeOnClick: false });
});
$("#position").click(function () {
$.notifyBar({ html: "At bottom", position: "bottom" });
});
$("#events").click(function () {
$.notifyBar({
html: "Test events",
onBeforeShow: function () {
$("#onBeforeShow").html("onBeforeShow - ok");
},
onShow: function () {
$("#onShow").html("onShow - ok");
},
onBeforeHide: function () {
$("#onBeforeHide").html("onBeforeHide - ok");
},
onHide: function () {
$("#onHide").html("onHide - ok");
}
});
});
});
</script>
</body>
</html>
<!-- trololo -->