-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
78 lines (67 loc) · 2.41 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>miniAlert - jQuery Plugin</title>
<link rel="stylesheet" href="css/site.css">
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<div id="container">
<header>
<h1>
<strong>miniAlert demo</strong> - jQuery Plugin
</h1>
</header>
<div id="main">
<div id="alert-1" class="mini-alert">
<h2>Hey, make sure to read this message before hiding it</h2>
<p>
Vestibulum id ligula porta felis euismod semper. Nulla vitae elit libero, a pharetra augue. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Donec id elit non mi porta gravida at eget metus. Vestibulum id ligula porta felis euismod semper.
</p>
</div>
<div id="alert-2" class="mini-alert">
<h2>Hey, make sure to read this message before hiding it</h2>
<p>
Vestibulum id ligula porta felis euismod semper. Nulla vitae elit libero, a pharetra augue. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Donec id elit non mi porta gravida at eget metus. Vestibulum id ligula porta felis euismod semper.
</p>
</div>
<div id="alert-3" class="mini-alert">
<h2>Hey, make sure to read this message before hiding it</h2>
<p>
Vestibulum id ligula porta felis euismod semper. Nulla vitae elit libero, a pharetra augue. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Donec id elit non mi porta gravida at eget metus. Vestibulum id ligula porta felis euismod semper.
</p>
</div>
</div>
<footer>
brought to you by <a href="http://minijs.com" target="_blank">minijs.com</a>
</footer>
</div>
<script src="js/libs/jquery.min.js"></script>
<script src="js/miniAlert.js"></script>
<script>
$(function() {
// Default options
$('#alert-1').miniAlert();
// Custom options
$('#alert-2').miniAlert({
text: 'close',
position: 'after',
effect: 'fade',
duration: 300
});
// Custom callback functions
$('#alert-3').miniAlert({
effect: 'slide',
duration: 1000,
onHide: function(element, button) {
element.find('h2, p').animate({opacity: 0}, 500);
button.animate({opacity: 0}, 100);
}
});
});
</script>
</body>
</html>