-
Notifications
You must be signed in to change notification settings - Fork 1
/
example.html
50 lines (46 loc) · 1.83 KB
/
example.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery compactors plugin test</title>
<link rel="stylesheet" href="example.css">
</head>
<body>
<div class="compactors">
<div class="compactor init-open">
<h3>Compactor 1</h3>
<div class="content">
<p>This is <a href="#">compactor content</a></p>
</div>
</div>
<div class="compactor">
<h3>Compactor 2</h3>
<div class="content">
<p>This is compactor content</p>
</div>
</div>
<div class="compactor">
<h3>Compactor 3</h3>
<div class="content">
<p>Cras dictum. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia mauris vel est. <a href="#">compactor content</a></p>
<p>Suspendisse eu nisl. Nullam ut libero. Integer dignissim consequat lectus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.</p>
<p>Cras dictum. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia mauris vel est.</p>
<p>Suspendisse eu nisl. Nullam ut libero. Integer dignissim consequat lectus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.</p>
</div>
</div>
<div class="compactor">
<h3>Compactor 4</h3>
<div class="content">
<p>This is <a href="#">compactor content</a></p>
</div>
</div>
</div>
<script src="http://code.jquery.com/jquery-1.4.2.js"></script>
<script src="jquery.compactors-0.0.1.js"></script>
<script>
$(function(){
$('.compactor').compactors({trigger_selector: 'h3', initially_open_selector: '.init-open'});
});
</script>
</body>
</html>