Skip to content

Commit 2fbb693

Browse files
jaspermdegrootarschmitz
authored andcommitted
Accordion: Corrections on demo page
1 parent 96d968f commit 2fbb693

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

demos/accordion/index.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,17 @@
1515
<body>
1616
<div data-role="page" class="jqm-demos" data-quicklinks="true">
1717

18-
<div data-role="header" class="jqm-header">
18+
<div data-role="toolbar" data-type="header" class="jqm-header">
1919
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquery-logo.png" alt="jQuery Mobile"></a></h2>
2020
<p><span class="jqm-version"></span> Demos</p>
21-
<a href="#" class="jqm-navmenu-link ui-button ui-button-icon-only ui-corner-all ui-nodisc-icon ui-alt-icon ui-button-left">Menu<span class="ui-icon ui-icon-bars"></span></a>
22-
<a href="#" class="jqm-search-link ui-button ui-button-icon-only ui-corner-all ui-nodisc-icon ui-alt-icon ui-button-right">Search<span class="ui-icon ui-icon-search"></span></a>
21+
<a href="#" class="jqm-navmenu-link ui-button ui-button-icon-only ui-corner-all ui-nodisc-icon ui-alt-icon ui-toolbar-header-button-left">Menu<span class="ui-icon ui-icon-bars"></span></a>
22+
<a href="#" class="jqm-search-link ui-button ui-button-icon-only ui-corner-all ui-nodisc-icon ui-alt-icon ui-toolbar-header-button-right">Search<span class="ui-icon ui-icon-search"></span></a>
2323
</div><!-- /header -->
2424

2525
<div role="main" class="ui-content jqm-content">
2626

2727
<h1>Accordion <a href="http://api.jquerymobile.com/accordion/" class="jqm-api-docs-link ui-button ui-nodisc-icon ui-alt-icon ui-button-inline ui-corner-all ui-mini">API <span class="ui-icon ui-icon-caret-r"></span></a></h1>
2828

29-
3029
<p>Displays collapsible content panels for presenting information in a limited amount of space.</p>
3130

3231
<h2>Default Accordion</h2>
@@ -74,6 +73,7 @@
7473

7574
<h2>Fill Space</h2>
7675
<p>Because the accordion is comprised of block-level elements, by default its width fills the available horizontal space. To fill the vertical space allocated by its container, set the <code>data-height-style</code> option to <code>"fill"</code>, and the script will automatically set the dimensions of the accordion to the height of its parent container.</p>
76+
7777
<div data-demo-html="true">
7878
<div style="height: 200px; width: 50%;">
7979
<div data-role="accordion" data-height-style="fill">
@@ -114,7 +114,8 @@
114114
</div><!--/demo-html -->
115115

116116
<h2>No Auto Height</h2>
117-
<p>Setting <code>data-height-style: "content"</code> allows the accordion panels to keep their native height.</p>
117+
<p>Setting <code>data-height-style="content"</code> allows the accordion panels to keep their native height.</p>
118+
118119
<div data-demo-html="true">
119120
<div data-role="accordion" data-height-style="content">
120121
<h3>Section 1</h3>
@@ -153,7 +154,7 @@
153154
</div><!--/demo-html -->
154155

155156
<h2>Collapse Content</h2>
156-
<p>By default, accordions always keep one section open. To allow for all sections to be be collapsible, set the <code>data-collapsible</code> option to true. Click on the currently open section to collapse its content pane.</p>
157+
<p>By default, accordions always keep one section open. To allow for all sections to be be collapsible, set the <code>data-collapsible</code> option to <code>true</code>. Click on the currently open section to collapse its content pane.</p>
157158

158159
<div data-demo-html="true">
159160
<div data-role="accordion" data-collapsible="true">
@@ -192,13 +193,13 @@
192193
</div>
193194
</div><!--/demo-html -->
194195

195-
<h2>Custon Icons</h2>
196-
<p>You can add or remove icons with the <code>data-icons</code> option, which accepts classes for the header's default and active (open) state. Use any class from jQuery Mobile, or create custom classes with background images</p>
196+
<h2>Custom Icons</h2>
197+
<p>You can add or remove icons with the <code>data-icons</code> option, which accepts classes for the header's default and active (open) state. Use any class from jQuery Mobile, or create custom classes with background images.</p>
197198

198199
<h3>Icons</h3>
199-
<div data-demo-html="true">
200200

201-
<div data-role="accordion" data-icons='{ "header": "ui-icon-arrow-d-r", "activeHeader": "ui-icon-star"}'>
201+
<div data-demo-html="true">
202+
<div data-role="accordion" data-icons='{ "header": "ui-icon-arrow-d-r", "activeHeader": "ui-icon-star" }'>
202203
<h3>Section 1</h3>
203204
<div>
204205
<p>
@@ -235,8 +236,8 @@
235236
</div><!--/demo-html -->
236237

237238
<h3>No Icons</h3>
238-
<div data-demo-html="true">
239239

240+
<div data-demo-html="true">
240241
<div data-role="accordion" data-icons="">
241242
<h3>Section 1</h3>
242243
<div>
@@ -278,7 +279,6 @@
278279
<p>Customize the theme with the <code>data-theme</code> option.</p>
279280

280281
<div data-demo-html="true">
281-
282282
<div data-role="accordion" data-theme="b">
283283
<h3>Section 1</h3>
284284
<div>
@@ -318,9 +318,9 @@
318318

319319
<?php include( '../jqm-navmenu.php' ); ?>
320320

321-
<div data-role="footer" data-position="fixed" data-tap-toggle="false" class="jqm-footer">
321+
<div data-role="toolbar" data-type="footer" data-position="fixed" data-tap-toggle="false" class="jqm-footer">
322322
<p>jQuery Mobile Demos version <span class="jqm-version"></span></p>
323-
<p>Copyright The jQuery Foundation</p>
323+
<p>Copyright jQuery Foundation</p>
324324
</div><!-- /footer -->
325325

326326
<?php include( '../jqm-search.php' ); ?>

0 commit comments

Comments
 (0)