-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.html
87 lines (79 loc) · 3.18 KB
/
index.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jQuery Notify | CreativeDream</title>
<!--Stylesheets-->
<link href="css/jquery.notify.css" type="text/css" rel="stylesheet" />
<!--jQuery-->
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script type="text/javascript" src="js/jquery.notify.min.js"></script>
<script>
$(document).ready(function(e) {
$('a').on('click', function(){
notify({
type: "alert", //alert | success | error | warning | info
title: "jQuery.Notify",
message: "Super simple Notify plugin.",
position: {
x: "right", //right | left | center
y: "top" //top | bottom | center
},
icon: '<img src="images/paper_plane.png" />', //<i>
size: "normal", //normal | full | small
overlay: false, //true | false
closeBtn: true, //true | false
overflowHide: false, //true | false
spacing: 20, //number px
theme: "default", //default | dark-theme
autoHide: true, //true | false
delay: 2500, //number ms
onShow: null, //function
onClick: null, //function
onHide: null, //function
template: '<div class="notify"><div class="notify-text"></div></div>'
});
});
});
</script>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<h1>jQuery Notify 1.0</h1>
<p>jQuery.notify is a jQuery plugin that makes it easy to create alert - success - error - warning - information messages as an alternative the standard alert dialog.</p>
<hr />
<h3>Demo:</h3>
<div align="center">
<a href="#">Show notification</a>
</div>
<!--
<div class="notify-overlay"></div>
<div class="notify notify-bottom-right">
<a href="javascript:;" class="notify-close-btn"></a>
<div class="notify-icon">
<div class="notify-icon-inner">
<i class="fa fa-star-o"></i>
</div>
</div>
<div class="notify-text">
<h3>Notification:</h3>
<p>Infobit was succefully added to favorites.</p>
</div>
</div>
-->
<br />
<h4>This script is including:</h4>
<ul>
<li>Jquery Code - <i>jquery.notify.min.js</i></li>
<li>CSS Code - <i>jquery.notify.css</i></li>
</ul>
<h4>This script Requires:</h4>
<ul>
<li>Jquery library - <i>jquery-1.8.2.min.js</i></li>
</ul>
<br />
© 2014 <b>CreativeDream</b>.
</body>
</html>