This repository was archived by the owner on Jan 31, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.html
More file actions
66 lines (42 loc) · 1.41 KB
/
default.html
File metadata and controls
66 lines (42 loc) · 1.41 KB
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
<!doctype html>
<html lang="en">
<head>
<title>Show/Hide Plugin</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.showhide.js"></script>
<style>
/* the CSS class .showHide is added dynamically */
.showHide .detail
{
display:none;
}
p {
margin:0 0 1em;
}
</style>
<!-- Example usage -->
<script type="text/javascript">
$(function() {
$('.item').showHide();
});
</script>
</head>
<body>
<div class="pageContent">
<h1>Show/Hide jQuery Plugin</h1>
<div class="item">
<div class="toggleHeading">
<h2>Toggle Component Title</h2>
<p>The content with the summary panel is visible on page load. The plugin will automatically add a 'show more' link at the bottom of the summary panel.
Clicking on the 'show more' link will toggle the visibility of the details panel below.</p>
</div>
<div class="toggleContent">
<p>The content within the details panel is hidden on page load.</p>
<p>This content really was worth hiding.</p>
</div>
</div>
</div>
</body>
</html>