This repository has been archived by the owner on May 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 71
/
collapsibles.html
104 lines (77 loc) · 2.62 KB
/
collapsibles.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!--
jQuery Mobile Boilerplate
/snippets/collapsibles.html
-->
<!doctype html>
<html>
<head>
<title> jQuery Mobile Boilerplate - Collapsibles Content</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- jQuery Mobile CSS bits -->
<link rel="stylesheet" href="css/jquery.mobile-1.4.0.min.css" />
<!-- if you have a custom theme, add it here -->
<link rel="stylesheet" href="themes/jQuery-Mobile-Boilerplate.css" />
<!-- Custom css -->
<link rel="stylesheet" href="css/custom.css" />
<!-- Javascript includes -->
<script src="js/jquery-1.10.2.js"></script>
<script src="js/mobileinit.js"></script>
<script src="js/jquery.mobile-1.4.0.js"></script>
<script src="js/application.js"></script>
</head>
<body>
<div data-role="page">
<div data-role="header">
<a href="index.html" data-icon="home">Home</a>
<h1>Collapsible Content</h1>
</div>
<div data-role="content">
<h2>Collapsible Content Blocks</h2>
<div data-role="collapsible">
<h3>Content header</h3>
<p>I'm the content that shows/hides when you click the header just above me.</p>
</div>
<h2>Default to open</h2>
<div data-role="collapsible" data-collapsed="false">
<h3>Content header</h3>
<p>I'm the content that shows/hides when you click the header just above me.</p>
</div>
<h2>Themed</h2>
<div data-role="collapsible" data-content-theme="c">
<h3>Content header</h3>
<p>I'm the content that shows/hides when you click the header just above me.</p>
</div>
<h2>Themed - content only</h2>
<div data-role="collapsible" data-theme="b" data-content-theme="e" >
<h3>Content header</h3>
<p>I'm the content that shows/hides when you click the header just above me.</p>
</div>
<h2>Nested Collapsibles</h2>
<div data-role="collapsible" data-collapsed="false" data-theme="e" data-content-theme="c">
<h3>Outer header</h3>
<p>I'm the content inside the main collapsible.</p>
<div data-role="collapsible" data-theme="c" data-content-theme="c">
<h3>I'm a nested collapsible with a child collapsible</h3>
<p>I'm a child collapsible.</p>
<div data-role="collapsible" data-theme="d" data-content-theme="d">
<h3>Nested inside again.</h3>
<p>Three levels deep now.</p>
</div>
</div>
<div data-role="collapsible" data-content-theme="c">
<h3>Collapsed list</h3>
<ul data-role="listview" data-inset="true" data-theme="d">
<li><a href="index.html">red</a></li>
<li><a href="index.html">blue</a></li>
<li><a href="index.html">yellow</a></li>
</ul>
</div><!-- /section 3 -->
</div>
</div>
<div data-role="footer">
<p>© 2012 - jQuery Mobile Boilerplate</p>
</div>
</div>
</body>
</html>