-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathexamples.html
41 lines (41 loc) · 2.22 KB
/
examples.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
<!DOCTYPE html>
<html xml:lang="fr" lang="fr">
<head>
<title>Test $.jnotify()</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<link type="text/css" href="./jquery.jnotify.css" rel="stylesheet" />
<script type="text/javascript" src="./jquery.jnotify.js"></script>
<script type="text/javascript">
$(function() {
$.jnotify('setting up error preset as default preset', 'notice', {timeout: 0});
$.jnotify('defaultPreset', 'error');
$.jnotify('Message with default error preset', {timeout: 0});
$.jnotify('removing error preset', 'notice', {timeout: 0});
$.jnotify('removePreset', 'error');
$.jnotify('Info message as default backup preset', {timeout: 0});
$.jnotify('Success message staying forever', 'success', {timeout: 0});
$.jnotify('adding new preset looking like success but staying 5 secs', 'notice', {timeout: 0});
$.jnotify('addPreset', 'long-success', {timeout: 5, css: 'success'});
$.jnotify('Success message with new preset staying 5 secs.', 'long-success');
$.jnotify('Warning message', 'warning', {timeout: 0});
} );
</script>
</head>
<body>
<p>Double click on notifications to remove them all.</p>
<p>Here's the code showing up the notifications you see right now once you loaded jQuery and the plugin.</p>
<pre>
$.jnotify('setting up error preset as default preset', 'notice', {timeout: 0});
$.jnotify('defaultPreset', 'error');
$.jnotify('Message with default error preset', {timeout: 0});
$.jnotify('removing error preset', 'notice', {timeout: 0});
$.jnotify('removePreset', 'error');
$.jnotify('Info message as default backup preset', {timeout: 0});
$.jnotify('Success message staying forever', 'success', {timeout: 0});
$.jnotify('adding new preset looking like success but staying 5 secs', 'notice', {timeout: 0});
$.jnotify('addPreset', 'long-success', {timeout: 5, css: 'success'});
$.jnotify('Success message with new preset staying 5 secs.', 'long-success');
$.jnotify('Warning message', 'warning', {timeout: 0});
</pre>
</body>
</html>