forked from ThrivingKings/Sticky
-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
37 lines (32 loc) · 1 KB
/
demo.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
<html>
<head>
<title>Stickt2 Demo</title>
<link rel="stylesheet" type="text/css" href="sticky.css">
<script type="text/javascript" src="jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="sticky.js"></script>
</head>
<body>
<script type="text/javascript">
$(function() {
window.showSticky();
//$.sticky("This is just a textual notification which would not be clickable.", {autoclose : false});
});
function showSticky() {
$.sticky(
{
link : "http://www.android.com/",
image : "demo.jpg",
title : "Demo Notification",
text : "This is a demo notification which was <b>requested</b> in a more structured manner. This notification should have an image, title, text & would be clickable."
},
{
position : "bottom-right",
autoclose : false
},
function(args){console.log(args);},
function(args){console.log(args);}
);
}
</script>
</body>
</html>