2 jQuery Mobile Boilerplate
3 /snippets/collapsibles.html
8 <title> jQuery Mobile Boilerplate - Collapsibles Content</title>
10 <meta charset="utf-8">
11 <meta name="viewport" content="width=device-width, initial-scale=1">
13 <!-- jQuery Mobile CSS bits -->
14 <link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css" />
16 <!-- if you have a custom theme, add it here -->
17 <link rel="stylesheet" href="/themes/jQuery-Mobile-Boilerplate.css" />
20 <link rel="stylesheet" href="/css/custom.css" />
22 <!-- Javascript includes -->
23 <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
24 <script src="/js/mobileinit.js"></script>
25 <script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script>
26 <script src="/js/application.js"></script>
29 <div data-role="page">
31 <div data-role="header">
32 <a href="../index.html" data-icon="home">Home</a>
33 <h1>Collapsible Content</h1>
36 <div data-role="content">
41 <h2>Collapsible Content Blocks</h2>
43 <div data-role="collapsible">
44 <h3>Content header</h3>
45 <p>I'm the content that shows/hides when you click the header just above me.</p>
48 <h2>Default to open</h2>
50 <div data-role="collapsible" data-collapsed="false">
51 <h3>Content header</h3>
52 <p>I'm the content that shows/hides when you click the header just above me.</p>
57 <div data-role="collapsible" data-content-theme="c">
58 <h3>Content header</h3>
59 <p>I'm the content that shows/hides when you click the header just above me.</p>
62 <h2>Themed - content only</h2>
64 <div data-role="collapsible" data-theme="b" data-content-theme="e" >
65 <h3>Content header</h3>
66 <p>I'm the content that shows/hides when you click the header just above me.</p>
69 <h2>Nested Collapsibles</h2>
71 <div data-role="collapsible" data-collapsed="false" data-theme="e" data-content-theme="c">
73 <p>I'm the content inside the main collapsible.</p>
75 <div data-role="collapsible" data-theme="c" data-content-theme="c">
76 <h3>I'm a nested collapsible with a child collapsible</h3>
77 <p>I'm a child collapsible.</p>
78 <div data-role="collapsible" data-theme="d" data-content-theme="d">
79 <h3>Nested inside again.</h3>
80 <p>Three levels deep now.</p>
84 <div data-role="collapsible" data-content-theme="c">
85 <h3>Collapsed list</h3>
86 <ul data-role="listview" data-inset="true" data-theme="d">
87 <li><a href="index.html">red</a></li>
88 <li><a href="index.html">blue</a></li>
89 <li><a href="index.html">yellow</a></li>
91 </div><!-- /section 3 -->
98 <div data-role="footer" data-theme="c">
99 <p>© 2012 - jQuery Mobile Boilerplate</p>