-
Notifications
You must be signed in to change notification settings - Fork 14
/
index.html
86 lines (71 loc) · 2.78 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
<!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>Growl demo</title>
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="css/growl.css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/growl.js"></script>
<script type="text/javascript">
jQuery(function($) {
$("#btnExSimple").bind("click",function(){
$.Growl.show("That was easy!!");
});
$("#btnExIcon").bind("click",function(){
$.Growl.show("That was easy too!!", {
'title' : "Sticky Example",
'timeout': false
});
});
$("#btnExLove").bind("click",function(){
$.Growl.show($("#donate").html(), {
'title' : "Show some love...",
'timeout': false
});
});
});
</script>
</head>
<body>
<div class="wrapper">
<h1>Growl <span>- a product by <a href="http://d-xp.com">d-xp.com</a></span></h1>
<p>
... a notification plugin.
</p>
<p>
<button id="btnExSimple" type="button">simple example</button>
<button id="btnExIcon" type="button">sticky example</button>
...you like it?
<button id="btnExLove" type="button">show some...</button>
</p>
<h2>Usage</h2>
<p class="test">
<pre>
$.Growl.show(content, <span style="color:#999;">{
//settings
"title": false,
"speed": 500,
"timeout": 3000,
"webnotification": false
}</span>);
</pre>
</p>
<h2>Code</h2>
<p><a href="https://github.com/aheinze/Growl">Fork me on github</a></p>
</div>
<div id="donate" style="display:none;">
and help me to buy a beer (or two) :-)
<br /><br />
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="[email protected]">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="EUR">
<input type="hidden" name="tax" value="0">
<input type="hidden" name="bn" value="PP-DonationsBF">
<input type="submit" value="Donate!">
</form>
</div>
</body>
</html>