-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathindex.html
69 lines (61 loc) · 1.9 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>miniFeed - 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>miniFeed demo</strong> - jQuery Plugin</h1>
</header>
<div id="main" class="clearfix">
<section id="example-1">
<h2>Default</h2>
<div class="mini-feed"></div>
</section>
<section id="example-2">
<h2>Template</h2>
<h3>Matthieu Aussaguel <a href="http://twitter.com/mattaussaguel" target="_blank">@mattaussaguel</a></h3>
<div class="mini-feed"></div>
</section>
<section id="example-3">
<h2>Events / Animation</h2>
<a href="#" class="show">Click Here</a>
<div class="mini-feed">
</div>
</section>
</div>
</div>
<script src="js/libs/jquery.min.js"></script>
<script src="js/miniFeed.js"></script>
<script>
$(function() {
$('#example-1 .mini-feed').miniFeed();
$('#example-2 .mini-feed').miniFeed({
template: '{time}{tweet}',
limit: 8,
timeFormat: 'normal',
hideReplies: true
});
$('#example-3 .show').click(function(e) {
e.preventDefault();
var link = $(this)
$('#example-3 .mini-feed').miniFeed({
onLoad: function(feed) {
link.text('Loading...')
},
onLoaded: function(feed) {
link.hide();
feed.css({opcacity:0, top: "+" + feed.height() + "px"}).animate({opacity: 'show', top: 0 }, 500, 'linear');
}
});
})
});
</script>
</body>
</html>