@@ -16,10 +16,10 @@
<div data-role="page" class="jqm-demos">

<div data-role="toolbar" data-type="header" class="jqm-header">
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquery-logo.png" alt="jQuery Mobile"></a></h2>
<p><span class="jqm-version"></span> Demos</p>
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquerymobile-logo.png" alt="jQuery Mobile"></a></h2>
<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>
<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>
<div class="jqm-banner"><h3>Version <span class="jqm-version"></span> Demos</h3></div>
</div><!-- /header -->

<div role="main" class="ui-content jqm-content">
@@ -67,18 +67,18 @@
<div data-demo-html="true">
<fieldset data-role="controlgroup" data-mini="true">
<legend class="ui-hidden-accessible">Vertical controlgroup, buttons:</legend>
<button class="ui-shadow ui-button ui-corner-all">One<span class="ui-icon ui-icon-home"></span></button>
<button class="ui-shadow ui-button ui-corner-all">One <span class="ui-icon ui-icon-home"></span></button>
<input type="button" data-icon="back" data-iconpos="right" value="Two">
<a href="#" class="ui-shadow ui-button ui-corner-all">Three<span class="ui-icon ui-icon-grid"></span></a>
<a href="#" class="ui-shadow ui-button ui-corner-all">Three <span class="ui-icon ui-icon-grid"></span></a>
</fieldset>
</div><!--/demo-html -->

<div data-demo-html="true">
<fieldset data-role="controlgroup" data-type="horizontal" data-mini="true">
<fieldset data-role="controlgroup" data-mini="true">
<legend class="ui-hidden-accessible">Horizontal controlgroup, buttons:</legend>
<button class="ui-shadow ui-button ui-corner-all">One<span class="ui-icon ui-icon-home"></span></button>
<button class="ui-shadow ui-button ui-corner-all">One <span class="ui-icon ui-icon-home"></span></button>
<input type="button" data-icon="back" data-iconpos="right" value="Two">
<a href="#" class="ui-shadow ui-button ui-corner-all">Three<span class="ui-icon ui-icon-grid"></span></a>
<a href="#" class="ui-shadow ui-button ui-corner-all">Three <span class="ui-icon ui-icon-grid"></span></a>
</fieldset>
</div><!--/demo-html -->

@@ -107,7 +107,7 @@
</div><!--/demo-html -->

<div data-demo-html="true">
<fieldset data-role="controlgroup" data-type="horizontal" data-mini="true">
<fieldset data-role="controlgroup" data-mini="true">
<legend class="ui-hidden-accessible">Horizontal controlgroup, select:</legend>
<label for="select-h-4a">Select A</label>
<select name="select-h-4a" id="select-h-4a">
@@ -131,10 +131,10 @@
</div><!--/demo-html -->

<div data-demo-html="true">
<fieldset data-role="controlgroup" data-type="horizontal" data-mini="true">
<fieldset data-role="controlgroup" data-mini="true">
<legend class="ui-hidden-accessible">Horizontal controlgroup, mixed:</legend>
<a href="#" class="ui-shadow ui-button ui-corner-all">Link<span class="ui-icon ui-icon-arrow-r"></span></a>
<button class="ui-shadow ui-button ui-corner-all ui-button-icon-only">Button<span class="ui-icon ui-icon-grid"></span></button>
<a href="#" class="ui-shadow ui-button ui-corner-all">Link <span class="ui-icon ui-icon-arrow-r"></span></a>
<button class="ui-shadow ui-button ui-corner-all ui-button-icon-only">Button <span class="ui-icon ui-icon-grid"></span></button>
<label for="select-v-4e">Select</label>
<select name="select-v-4e" id="select-v-4e">
<option value="#">One</option>
@@ -190,7 +190,7 @@
</div><!--/demo-html -->

<div data-demo-html="true">
<fieldset data-role="controlgroup" data-type="horizontal">
<fieldset data-role="controlgroup">
<legend class="ui-hidden-accessible">Horizontal controlgroup, checkbox:</legend>
<input type="checkbox" name="checkbox-h-4a" id="checkbox-h-4a">
<label for="checkbox-h-4a">One</label>
@@ -202,7 +202,7 @@
</div><!--/demo-html -->

<div data-demo-html="true">
<fieldset data-role="controlgroup" data-type="horizontal">
<fieldset data-role="controlgroup">
<legend class="ui-hidden-accessible">Horizontal controlgroup, radio:</legend>
<input type="radio" name="radio-choice-h-4" id="radio-choice-h-4a" value="on" checked="checked">
<label for="radio-choice-h-4a">One</label>
@@ -261,18 +261,18 @@
<div data-demo-html="true">
<fieldset data-role="controlgroup" data-mini="true">
<legend class="ui-hidden-accessible">Vertical controlgroup, buttons:</legend>
<button class="ui-shadow ui-button ui-corner-all">One<span class="ui-icon ui-icon-home"></span></button>
<button class="ui-shadow ui-button ui-corner-all">One <span class="ui-icon ui-icon-home"></span></button>
<input type="button" data-icon="back" data-iconpos="right" value="Two">
<a href="#" class="ui-shadow ui-button ui-corner-all">Three<span class="ui-icon ui-icon-grid"></span></a>
<a href="#" class="ui-shadow ui-button ui-corner-all">Three <span class="ui-icon ui-icon-grid"></span></a>
</fieldset>
</div><!--/demo-html -->

<div data-demo-html="true">
<fieldset data-role="controlgroup" data-type="horizontal" data-mini="true">
<fieldset data-role="controlgroup" data-mini="true">
<legend class="ui-hidden-accessible">Horizontal controlgroup, buttons:</legend>
<button class="ui-shadow ui-button ui-corner-all">One<span class="ui-icon ui-icon-home"></span></button>
<button class="ui-shadow ui-button ui-corner-all">One <span class="ui-icon ui-icon-home"></span></button>
<input type="button" data-icon="back" data-iconpos="right" value="Two">
<a href="#" class="ui-shadow ui-button ui-corner-all">Three<span class="ui-icon ui-icon-grid"></span></a>
<a href="#" class="ui-shadow ui-button ui-corner-all">Three <span class="ui-icon ui-icon-grid"></span></a>
</fieldset>
</div><!--/demo-html -->

@@ -301,7 +301,7 @@
</div><!--/demo-html -->

<div data-demo-html="true">
<fieldset data-role="controlgroup" data-type="horizontal" data-mini="true">
<fieldset data-role="controlgroup" data-mini="true">
<legend class="ui-hidden-accessible">Horizontal controlgroup, select:</legend>
<label for="select-h-8a">Select A</label>
<select name="select-h-8a" id="select-h-8a">
@@ -325,10 +325,10 @@
</div><!--/demo-html -->

<div data-demo-html="true">
<fieldset data-role="controlgroup" data-type="horizontal" data-mini="true">
<fieldset data-role="controlgroup" data-mini="true">
<legend class="ui-hidden-accessible">Horizontal controlgroup, mixed:</legend>
<a href="#" class="ui-shadow ui-button ui-corner-all">Link<span class="ui-icon ui-icon-arrow-r"></span></a>
<button class="ui-shadow ui-button ui-corner-all ui-button-icon-only">Button<span class="ui-icon ui-icon-grid"></span></button>
<a href="#" class="ui-shadow ui-button ui-corner-all">Link <span class="ui-icon ui-icon-arrow-r"></span></a>
<button class="ui-shadow ui-button ui-corner-all ui-button-icon-only">Button <span class="ui-icon ui-icon-grid"></span></button>
<label for="select-v-8e">Select</label>
<select name="select-v-8e" id="select-v-8e">
<option value="#">One</option>
@@ -384,7 +384,7 @@
</div><!--/demo-html -->

<div data-demo-html="true">
<fieldset data-role="controlgroup" data-type="horizontal" data-mini="true">
<fieldset data-role="controlgroup" data-mini="true">
<legend class="ui-hidden-accessible">Horizontal controlgroup, checkbox:</legend>
<input type="checkbox" name="checkbox-h-8a" id="checkbox-h-8a">
<label for="checkbox-h-8a">One</label>
@@ -396,7 +396,7 @@
</div><!--/demo-html -->

<div data-demo-html="true">
<fieldset data-role="controlgroup" data-type="horizontal" data-mini="true">
<fieldset data-role="controlgroup" data-mini="true">
<legend class="ui-hidden-accessible">Horizontal controlgroup, radio:</legend>
<input type="radio" name="radio-choice-h-8" id="radio-choice-h-8a" value="on" checked="checked">
<label for="radio-choice-h-8a">One</label>
@@ -419,13 +419,17 @@
<?php include( '../jqm-navmenu.php' ); ?>

<div data-role="toolbar" data-type="footer" data-position="fixed" data-tap-toggle="false" class="jqm-footer">
<p>jQuery Mobile Demos version <span class="jqm-version"></span></p>
<h6>jQuery Mobile Version <span class="jqm-version"></span> Demos</h6>
<ul>
<li><a href="http://jquerymobile.com/" title="Visit the jQuery Mobile web site">jquerymobile.com</a></li>
<li><a href="https://github.com/jquery/jquery-mobile" title="Visit the jQuery Mobile GitHub repository">GitHub repository</a></li>
</ul>
<p>Copyright jQuery Foundation</p>
</div><!-- /footer -->

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

</div><!-- /page -->

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

</body>
</html>
@@ -4,23 +4,23 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Form elements - jQuery Mobile Demos</title>
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css">
<link rel="stylesheet" href="../_assets/css/jqm-demos.css">
<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,700">
<script src="../../external/jquery/jquery.js"></script>
<script src="../_assets/js/"></script>
<script src="../../js/"></script>
</head>
<body>
<div data-role="page" class="jqm-demos" data-quicklinks="true">

<div data-role="toolbar" data-type="header" class="jqm-header">
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquery-logo.png" alt="jQuery Mobile"></a></h2>
<p><span class="jqm-version"></span> Demos</p>
<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>
<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>
</div><!-- /header -->
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css">
<link rel="stylesheet" href="../_assets/css/jqm-demos.css">
<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,700">
<script src="../../external/jquery/jquery.js"></script>
<script src="../_assets/js/"></script>
<script src="../../js/"></script>
</head>
<body>
<div data-role="page" class="jqm-demos" data-quicklinks="true">

<div data-role="toolbar" data-type="header" class="jqm-header">
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquerymobile-logo.png" alt="jQuery Mobile"></a></h2>
<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>
<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>
<div class="jqm-banner"><h3>Version <span class="jqm-version"></span> Demos</h3></div>
</div><!-- /header -->

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

@@ -46,17 +46,17 @@

<p>Inline buttons</p>
<div data-demo-html="true">
<a href="#" class="ui-shadow ui-button ui-corner-all ui-button-inline">Inline + icon<span class="ui-icon ui-icon-star"></span></a>
<a href="#" class="ui-shadow ui-button ui-corner-all ui-button-inline">Inline + icon <span class="ui-icon ui-icon-star"></span></a>
<a href="#" class="ui-shadow ui-button ui-corner-all ui-button-inline ui-button-b ui-mini">Mini + theme</a>
<a href="#" class="ui-shadow ui-button ui-corner-all ui-button-inline ui-button-icon-only ui-button-b ui-mini">icon only button<span class="ui-icon ui-icon-plus"></span></a>
<a href="#" class="ui-shadow ui-button ui-corner-all ui-button-inline ui-button-icon-only ui-button-b ui-mini">icon only button <span class="ui-icon ui-icon-plus"></span></a>
</div><!-- /demo-html -->

<p>Horizontal grouped buttons</p>
<div data-demo-html="true">
<div data-role="controlgroup" data-type="horizontal" data-mini="true">
<a href="#" class="ui-shadow ui-button ui-corner-all ui-button-b">Add<span class="ui-icon ui-icon-plus"></span></a>
<a href="#" class="ui-shadow ui-button ui-corner-all ui-button-b">Delete<span class="ui-icon ui-icon-delete"></span></a>
<a href="#" class="ui-shadow ui-button ui-corner-all ui-button-b">More<span class="ui-icon ui-icon-grid"></span></a>
<div data-role="controlgroup" data-mini="true">
<a href="#" class="ui-button">Add <span class="ui-icon ui-icon-plus"></span></a>
<a href="#" class="ui-button">Delete <span class="ui-icon ui-icon-delete"></span></a>
<a href="#" class="ui-button">More <span class="ui-icon ui-icon-grid"></span></a>
</div>
</div><!-- /demo-html -->

@@ -147,7 +147,7 @@
</div><!-- /demo-html -->

<div data-demo-html="true">
<fieldset data-role="controlgroup" data-type="horizontal" data-mini="true">
<fieldset data-role="controlgroup" data-mini="true">
<legend>Checkboxes, mini, horizontal controlgroup:</legend>
<input type="checkbox" name="checkbox-6" id="checkbox-6">
<label for="checkbox-6">b</label>
@@ -182,7 +182,7 @@
</div><!-- /demo-html -->

<div data-demo-html="true">
<fieldset data-role="controlgroup" data-type="horizontal" data-mini="true">
<fieldset data-role="controlgroup" data-mini="true">
<legend>Radio buttons, mini, horizontal controlgroup:</legend>
<input type="radio" name="radio-choice-b" id="radio-choice-c" value="list" checked="checked">
<label for="radio-choice-c">List</label>
@@ -422,13 +422,17 @@
<?php include( '../jqm-navmenu.php' ); ?>

<div data-role="toolbar" data-type="footer" data-position="fixed" data-tap-toggle="false" class="jqm-footer">
<p>jQuery Mobile Demos version <span class="jqm-version"></span></p>
<h6>jQuery Mobile Version <span class="jqm-version"></span> Demos</h6>
<ul>
<li><a href="http://jquerymobile.com/" title="Visit the jQuery Mobile web site">jquerymobile.com</a></li>
<li><a href="https://github.com/jquery/jquery-mobile" title="Visit the jQuery Mobile GitHub repository">GitHub repository</a></li>
</ul>
<p>Copyright jQuery Foundation</p>
</div><!-- /footer -->

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

</div><!-- /page -->

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

</body>
</html>
@@ -27,10 +27,10 @@
<div data-role="page" class="jqm-demos" data-quicklinks="true">

<div data-role="toolbar" data-type="header" class="jqm-header">
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquery-logo.png" alt="jQuery Mobile"></a></h2>
<p><span class="jqm-version"></span> Demos</p>
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquerymobile-logo.png" alt="jQuery Mobile"></a></h2>
<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>
<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>
<div class="jqm-banner"><h3>Version <span class="jqm-version"></span> Demos</h3></div>
</div><!-- /header -->

<div role="main" class="ui-content jqm-content">
@@ -153,13 +153,17 @@
<?php include( '../jqm-navmenu.php' ); ?>

<div data-role="toolbar" data-type="footer" data-position="fixed" data-tap-toggle="false" class="jqm-footer">
<p>jQuery Mobile Demos version <span class="jqm-version"></span></p>
<h6>jQuery Mobile Version <span class="jqm-version"></span> Demos</h6>
<ul>
<li><a href="http://jquerymobile.com/" title="Visit the jQuery Mobile web site">jquerymobile.com</a></li>
<li><a href="https://github.com/jquery/jquery-mobile" title="Visit the jQuery Mobile GitHub repository">GitHub repository</a></li>
</ul>
<p>Copyright jQuery Foundation</p>
</div><!-- /footer -->

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

</div><!-- /page -->

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

</body>
</html>
@@ -110,15 +110,17 @@
<div data-role="page" class="jqm-demos">

<div data-role="toolbar" data-type="header" class="jqm-header">
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquery-logo.png" alt="jQuery Mobile"></a></h2>
<p><span class="jqm-version"></span> Demos</p>
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquerymobile-logo.png" alt="jQuery Mobile"></a></h2>
<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>
<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>
<div class="jqm-banner"><h3>Version <span class="jqm-version"></span> Demos</h3></div>
</div><!-- /header -->

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

<h1>Custom responsive grid <a href="http://api.jquerymobile.com/responsive-grid/" 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>
<h1>Custom responsive grid</h1>

<a href="http://api.jquerymobile.com/responsive-grid/" class="jqm-api-docs-link ui-nodisc-icon ui-alt-icon" title="Visit the API Documentation" target="_blank">API Documentation <span class="ui-icon ui-icon-action"></span></a>

<p>It's easy to extend the basic grid styles into a custom responsive layout by using CSS media queries to adjust the layout and design across various screen width breakpoints.</p>

@@ -163,13 +165,17 @@
<?php include( '../jqm-navmenu.php' ); ?>

<div data-role="toolbar" data-type="footer" data-position="fixed" data-tap-toggle="false" class="jqm-footer">
<p>jQuery Mobile Demos version <span class="jqm-version"></span></p>
<h6>jQuery Mobile Version <span class="jqm-version"></span> Demos</h6>
<ul>
<li><a href="http://jquerymobile.com/" title="Visit the jQuery Mobile web site">jquerymobile.com</a></li>
<li><a href="https://github.com/jquery/jquery-mobile" title="Visit the jQuery Mobile GitHub repository">GitHub repository</a></li>
</ul>
<p>Copyright jQuery Foundation</p>
</div><!-- /footer -->

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

</div><!-- /page -->

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

</body>
</html>
@@ -16,15 +16,17 @@
<div data-role="page" class="jqm-demos" data-quicklinks="true">

<div data-role="toolbar" data-type="header" class="jqm-header">
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquery-logo.png" alt="jQuery Mobile"></a></h2>
<p><span class="jqm-version"></span> Demos</p>
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquerymobile-logo.png" alt="jQuery Mobile"></a></h2>
<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>
<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>
<div class="jqm-banner"><h3>Version <span class="jqm-version"></span> Demos</h3></div>
</div><!-- /header -->

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

<h1>Grids <a href="http://api.jquerymobile.com/grid-layout/" 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>
<h1>Grids</h1>

<a href="http://api.jquerymobile.com/grid-layout/" class="jqm-api-docs-link ui-nodisc-icon ui-alt-icon" title="Visit the API Documentation" target="_blank">API Documentation <span class="ui-icon ui-icon-action"></span></a>

<p>The jQuery Mobile framework provides a simple way to build CSS-based columns that can also be responsive.
</p>
@@ -205,13 +207,17 @@
<?php include( '../jqm-navmenu.php' ); ?>

<div data-role="toolbar" data-type="footer" data-position="fixed" data-tap-toggle="false" class="jqm-footer">
<p>jQuery Mobile Demos version <span class="jqm-version"></span></p>
<h6>jQuery Mobile Version <span class="jqm-version"></span> Demos</h6>
<ul>
<li><a href="http://jquerymobile.com/" title="Visit the jQuery Mobile web site">jquerymobile.com</a></li>
<li><a href="https://github.com/jquery/jquery-mobile" title="Visit the jQuery Mobile GitHub repository">GitHub repository</a></li>
</ul>
<p>Copyright jQuery Foundation</p>
</div><!-- /footer -->

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

</div><!-- /page -->

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

</body>
</html>

Large diffs are not rendered by default.

@@ -22,15 +22,17 @@
<div data-role="page" class="jqm-demos" data-quicklinks="true">

<div data-role="toolbar" data-type="header" class="jqm-header">
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquery-logo.png" alt="jQuery Mobile"></a></h2>
<p><span class="jqm-version"></span> Demos</p>
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquerymobile-logo.png" alt="jQuery Mobile"></a></h2>
<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>
<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>
<div class="jqm-banner"><h3>Version <span class="jqm-version"></span> Demos</h3></div>
</div><!-- /header -->

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

<h1>Icons <a href="http://api.jquerymobile.com/icons/" 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>
<h1>Icons</h1>

<a href="http://api.jquerymobile.com/icons/" class="jqm-api-docs-link ui-nodisc-icon ui-alt-icon" title="Visit the API Documentation" target="_blank">API Documentation <span class="ui-icon ui-icon-action"></span></a>

<p>A set of built-in icons in jQuery Mobile can be applied to buttons, collapsibles, listview buttons and more. There is an SVG and PNG image of each icon. By default the SVG icons, that look great on both SD and HD screens, are used. On platforms that don't support SVG the framework falls back to PNG icons.</p>

@@ -95,7 +97,7 @@

<h2>Custom Icons</h2>

<p>Icons are displayed as background image of a <code>span</code>code> element and have a background size of 18x18px. The example below shows the custom CSS that you would need to use to add your own icons.</p>
<p>Icons are displayed as background image of a <code>span</code> element and have a background size of 18x18px. The example below shows the custom CSS that you would need to use to add your own icons.</p>

<div data-demo-html="true" data-demo-css="#custom-icon">
<button data-icon="ui-icon-myicon">myicon</button>
@@ -112,31 +114,31 @@
background-image: url("iconimg.png");
}
</code></pre>

<h2>Icon positioning</h2>

<p>In case of link buttons and <code>button</code> elements there are four possible icon positions; "beginning" (left), "end" (right), "top", and "bottom". By default the icon is placed at the beginning, but this can be overridden by using the <code>data-iconpos</code> attribute.</p>

<h3>Block buttons</h3>

<div data-demo-html="true">
<a href="index.php" data-role="button" data-icon="ui-icon-arrow-l">Beginning</a>
<a href="index.php" data-role="button" data-icon="ui-icon-arrow-r" data-icon-position="end">End</a>
<a href="index.php" data-role="button" data-icon="ui-icon-arrow-u" data-icon-position="top">Top</a>
<a href="index.php" data-role="button" data-icon="ui-icon-arrow-d" data-icon-position="bottom">Bottom</a>
</div><!--/demo-html -->

<h3>Mini buttons</h3>

<div data-demo-html="true">
<a href="index.php" data-role="button" data-mini="true" data-icon="ui-icon-arrow-l">Beginning</a>
<a href="index.php" data-role="button" data-mini="true" data-icon="ui-icon-arrow-r" data-icon-position="end">End</a>
<a href="index.php" data-role="button" data-mini="true" data-icon="ui-icon-arrow-u" data-icon-position="top">Top</a>
<a href="index.php" data-role="button" data-mini="true" data-icon="ui-icon-arrow-d" data-icon-position="bottom">Bottom</a>
</div><!--/demo-html -->

<h3>Inline buttons</h3>

<div data-demo-html="true">
<a href="index.php" data-role="button" data-inline="true" data-icon="ui-icon-arrow-l">Beginning</a>
<a href="index.php" data-role="button" data-inline="true" data-icon="ui-icon-arrow-r" data-icon-position="end">End</a>
@@ -145,7 +147,7 @@
</div><!--/demo-html -->

<h3>Inline mini buttons</h3>

<div data-demo-html="true">
<a href="index.php" data-role="button" data-inline="true" data-mini="true" data-icon="ui-icon-arrow-l">Beginning</a>
<a href="index.php" data-role="button" data-inline="true" data-mini="true" data-icon="ui-icon-arrow-r" data-icon-position="end">End</a>
@@ -154,9 +156,9 @@
</div><!--/demo-html -->

<h2>Float icons</h2>

<p>The framework offers helper classes, <code>ui-widget-icon-floatbeginning</code> and <code>ui-widget-icon-floatend</code> to make icons inside block buttons float to the beginning or end.</p>

<div data-demo-html="true">
<a href="index.php" data-role="button" data-icon="ui-icon-caret-l" data-classes='{ "ui-button-icon": "ui-button-icon ui-icon ui-icon-caret-l ui-widget-icon-floatbeginning" }'>Beginning</a>
<button href="index.php" data-role="button" data-icon="ui-icon-caret-l" data-classes='{ "ui-button-icon": "ui-button-icon ui-icon ui-icon-caret-l ui-widget-icon-floatbeginning" }'>Beginning</button>
@@ -167,21 +169,21 @@
<a href="index.php" data-role="button" data-mini="true" data-icon="ui-icon-caret-r" data-icon-position="end" data-classes='{ "ui-button-icon": "ui-button-icon ui-icon ui-icon-caret-r ui-widget-icon-floatend" }'>End</a>
<button href="index.php" data-role="button" data-mini="true" data-icon="ui-icon-caret-r" data-icon-position="end" data-classes='{ "ui-button-icon": "ui-button-icon ui-icon ui-icon-caret-r ui-widget-icon-floatend" }'>End</button>
</div><!--/demo-html -->

<p>Examples of adding the helper class to icons in pre-enhanced buttons.</p>

<div data-demo-html="true">
<a href="index.php" data-role="button" data-enhanced="true" class="ui-button ui-shadow ui-corner-all ui-widget"><span class="ui-button-icon ui-icon ui-icon-caret-l ui-widget-icon-floatbeginning"></span><span class="ui-button-icon-space"> </span>Beginning</a>
<button data-role="button" data-enhanced="true" class="ui-button ui-shadow ui-corner-all ui-widget">End<span class="ui-button-icon-space"> </span><span class="ui-button-icon ui-icon ui-icon-caret-r ui-widget-icon-floatend"></span></button>
</div><!--/demo-html -->
</div><!--/demo-html -->

<p>Examples of adding the helper class to icons in CSS-only buttons.</p>

<div data-demo-html="true">
<a href="index.php" class="ui-button ui-shadow ui-corner-all"><span class="ui-button-icon ui-icon ui-icon-caret-l ui-widget-icon-floatbeginning"></span> Beginning</a>
<button data-role="none" class="ui-button ui-shadow ui-corner-all">End <span class="ui-button-icon ui-icon ui-icon-caret-r ui-widget-icon-floatend"></span></button>
</div><!--/demo-html -->

<h2>Icon-only</h2>

<p>Add <code>data-show-label="false"</code> if you want to create an icon-only button.</p>
@@ -208,7 +210,7 @@
</div>
</div><!--/demo-html -->

<h2>Black vs. white icon sets</h2>
<h2>Black versus white icon sets</h2>

<p>Icons are white by default but you can switch to black icons by adding the <code>ui-alt-icon</code> class to the element or its container. This also changes the color that is used for the discs.</p>

@@ -234,7 +236,7 @@
<a href="index.php" data-role="button" data-inline="true" data-icon="ui-icon-plus" data-show-label="false" class="ui-nodisc-icon ui-alt-icon">Alt icon without disc</a>
<a href="index.php" data-role="button" data-inline="true" data-icon="ui-icon-minus" data-theme="b" data-show-label="false" class="ui-nodisc-icon">No disc</a>
</div><!--/demo-html -->

<p>Example of the classes being applied to a wrapper.</p>

<div data-demo-html="true">
@@ -265,35 +267,39 @@
</div><!--/demo-html -->

<h2>CSS only buttons with icons</h2>

<p>Examples of buttons with icons that don't use the Button widget.</p>

<div data-demo-html="true">
<a href="index.php" class="ui-button ui-button-inline ui-shadow ui-corner-all ui-button-b">Link <span class="ui-button-icon ui-icon ui-icon-delete"></span></a>
<button data-role="none" class="ui-button ui-button-inline ui-shadow ui-corner-all ui-button-b">Button <span class="ui-button-icon ui-icon ui-icon-delete"></span></button>
</div><!--/demo-html -->

<h2>Enhanced buttons with icons</h2>

<p>Examples of buttons with icons that do use the Button widget, but are pre-enhanced.</p>

<div data-demo-html="true">
<a href="index.php" data-role="button" data-enhanced="true" data-inline="true" data-theme="b" class="ui-button ui-button-inline ui-shadow ui-corner-all ui-button-b ui-widget">Link<span class="ui-button-icon-space"> </span><span class="ui-button-icon ui-icon ui-icon-delete"></span></a>
<button data-role="button" data-enhanced="true" data-inline="true" data-theme="b" class="ui-button ui-button-inline ui-shadow ui-corner-all ui-button-b ui-widget">Button<span class="ui-button-icon-space"> </span><span class="ui-button-icon ui-icon ui-icon-delete"></span></button>
</div><!--/demo-html -->

</div><!-- /content -->

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

<div data-role="toolbar" data-type="footer" data-position="fixed" data-tap-toggle="false" class="jqm-footer">
<p>jQuery Mobile Demos version <span class="jqm-version"></span></p>
<h6>jQuery Mobile Version <span class="jqm-version"></span> Demos</h6>
<ul>
<li><a href="http://jquerymobile.com/" title="Visit the jQuery Mobile web site">jquerymobile.com</a></li>
<li><a href="https://github.com/jquery/jquery-mobile" title="Visit the jQuery Mobile GitHub repository">GitHub repository</a></li>
</ul>
<p>Copyright jQuery Foundation</p>
</div><!-- /footer -->

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

</div><!-- /page -->

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

</body>
</html>
@@ -16,20 +16,22 @@
<div data-role="page" class="jqm-demos jqm-home">

<div data-role="toolbar" data-type="header" class="jqm-header">
<h2><img src="_assets/img/jquery-logo.png" alt="jQuery Mobile"></h2>
<p>Version <span class="jqm-version"></span></p>
<h2><img src="_assets/img/jquerymobile-logo.png" alt="jQuery Mobile"></h2>
<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>
<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>
<div class="jqm-banner"><h3>Version <span class="jqm-version"></span> Demos</h3></div>
</div><!-- /header -->

<div role="main" class="ui-content jqm-content">
<h1><span class="jqm-version"></span> Demos</h1>

<p><span class="jqm-intro-span">jQuery Mobile</span> is a touch-optimized HTML5 UI framework designed to make responsive web sites and apps that are accessible on all smartphone, tablet and desktop devices.</p>

<img src="_assets/img/devices.png" class="jqm-demos-hero">
<h1>Demos</h1>

<p><strong>jQuery Mobile is a touch-optimized HTML5 UI framework designed to make responsive web sites and apps that are accessible on all smartphone, tablet and desktop devices.</strong></p>
<p>New to jQuery Mobile? Get started by reading this <a href="intro/" data-ajax="false">introduction</a>. For technical info, visit the <a href="http://api.jquerymobile.com" title="jQuery Mobile API documentation" target="_blank">API documentation</a>. Downloads and info about the project can be found on <a href="http://jquerymobile.com" title="jQuery Mobile web site" target="_blank">jquerymobile.com</a>.</p>

<p>New to jQuery Mobile? Get started by reading this <a href="intro/" data-ajax="false">introduction</a>. For technical info, visit the <a href="http://api.jquerymobile.com" title="jQuery Mobile API documentation" target="_blank">API documentation</a>. Downloads and info about the project can be found on <a href="http://jquerymobile.com" title="jQuery Mobile web site" target="_blank">jquerymobile.com</a>.</p>
<div class="ui-grid-a ui-responsive">
<div class="ui-grid-a ui-responsive jqm-grid">
<div class="ui-block-a">
<div class="jqm-block-content">
<h3>Pages &amp; Navigation</h3>
@@ -54,7 +56,7 @@

<p><a href="toolbar/" data-ajax="false">Toolbar</a>, <a href="navbar/" data-ajax="false">Navbar</a>, <a href="controlgroup/" data-ajax="false">Controlgroup</a></p>
<p><a href="tabs/" data-ajax="false">Tabs</a>, <a href="panel/" data-ajax="false">Panel</a>, <a href="popup/" data-ajax="false">Popup</a></p>
<p><a href="collapsible/" data-ajax="false">Collapsible</a>, <a href="collapsibleset/" data-ajax="false">Collapsible set</a>, <a href="filterable/" data-ajax="false">Filterable</a></p>
<p><a href="accordion/" data-ajax="false">Accordion</a>, <a href="collapsible/" data-ajax="false">Collapsible</a>, <a href="collapsibleset/" data-ajax="false">Collapsible set</a></p>
</div>
</div>
<div class="ui-block-b">
@@ -81,6 +83,7 @@
<h3>Lists and Tables</h3>

<p><a href="listview/" data-ajax="false">Listview</a>, <a href="../listview-collapsible-item-flat/" data-ajax="false">Collapsible Listview</a></p>
<p><a href="filterable/" data-ajax="false">Filterable</a></p>
<p><a href="table-reflow/" data-ajax="false">Table Reflow</a>, <a href="table-column-toggle/" data-ajax="false">Table Column Toggle</a></p>
</div>
</div>
@@ -91,13 +94,17 @@
<?php include( 'jqm-navmenu.php' ); ?>

<div data-role="toolbar" data-type="footer" data-position="fixed" data-tap-toggle="false" class="jqm-footer">
<p>jQuery Mobile Demos version <span class="jqm-version"></span></p>
<h6>jQuery Mobile Version <span class="jqm-version"></span> Demos</h6>
<ul>
<li><a href="http://jquerymobile.com/" title="Visit the jQuery Mobile web site">jquerymobile.com</a></li>
<li><a href="https://github.com/jquery/jquery-mobile" title="Visit the jQuery Mobile GitHub repository">GitHub repository</a></li>
</ul>
<p>Copyright jQuery Foundation</p>
</div><!-- /footer -->

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

</div><!-- /page -->

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

</body>
</html>
@@ -16,10 +16,10 @@
<div data-role="page" class="jqm-demos" data-quicklinks="true">

<div data-role="toolbar" data-type="header" class="jqm-header">
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquery-logo.png" alt="jQuery Mobile"></a></h2>
<p><span class="jqm-version"></span> Demos</p>
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquerymobile-logo.png" alt="jQuery Mobile"></a></h2>
<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>
<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>
<div class="jqm-banner"><h3>Version <span class="jqm-version"></span> Demos</h3></div>
</div><!-- /header -->

<div role="main" class="ui-content jqm-content">
@@ -118,13 +118,17 @@
<?php include( '../jqm-navmenu.php' ); ?>

<div data-role="toolbar" data-type="footer" data-position="fixed" data-tap-toggle="false" class="jqm-footer">
<p>jQuery Mobile Demos version <span class="jqm-version"></span></p>
<h6>jQuery Mobile Version <span class="jqm-version"></span> Demos</h6>
<ul>
<li><a href="http://jquerymobile.com/" title="Visit the jQuery Mobile web site">jquerymobile.com</a></li>
<li><a href="https://github.com/jquery/jquery-mobile" title="Visit the jQuery Mobile GitHub repository">GitHub repository</a></li>
</ul>
<p>Copyright jQuery Foundation</p>
</div><!-- /footer -->

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

</div><!-- /page -->

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

</body>
</html>

Large diffs are not rendered by default.

@@ -1,5 +1,6 @@
<div data-role="panel" class="jqm-navmenu-panel" data-position="left" data-display="overlay" data-theme="a">
<ul class="jqm-list ui-alt-icon ui-nodisc-icon">
<ul class="ui-alt-icon ui-nodisc-icon">
<li data-role='list-divider'>Menu</li>
<?php include( 'jqm-contents.php' ); ?>
</ul>
</div><!-- /panel -->
@@ -1,8 +1,10 @@
<!-- TODO: This should become an external panel so we can add input to markup (unique ID) -->
<div data-role="panel" class="jqm-search-panel" data-position="right" data-display="overlay" data-theme="a">
<div class="jqm-search">
<ul class="jqm-list" data-filter-placeholder="Search demos..." data-filter-reveal="true">
<?php include( 'jqm-contents.php' ); ?>
</ul>
</div>
</div><!-- /panel -->
<div class="jqm-search-panel">
<div class="jqm-search">
<form class="ui-alt-icon ui-nodisc-icon">
<input data-type="search" name="search" id="jqm-search-input" class="jqm-search-input" placeholder="Search demos...">
</form>
<ul class="jqm-search-list" data-filter="true" data-filter-reveal="true" data-input="#jqm-search-input">
<?php include( 'jqm-contents.php' ); ?>
</ul>
</div>
</div><!-- /panel -->
@@ -52,10 +52,10 @@
<div data-role="page" class="jqm-demos" id="myPage">

<div data-role="toolbar" data-type="header" class="jqm-header">
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquery-logo.png" alt="jQuery Mobile"></a></h2>
<p><span class="jqm-version"></span> Demos</p>
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquerymobile-logo.png" alt="jQuery Mobile"></a></h2>
<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>
<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>
<div class="jqm-banner"><h3>Version <span class="jqm-version"></span> Demos</h3></div>
</div><!-- /header -->

<div role="main" class="ui-content jqm-content">
@@ -81,13 +81,17 @@
<?php include( '../jqm-navmenu.php' ); ?>

<div data-role="toolbar" data-type="footer" data-position="fixed" data-tap-toggle="false" class="jqm-footer">
<p>jQuery Mobile Demos version <span class="jqm-version"></span></p>
<h6>jQuery Mobile Version <span class="jqm-version"></span> Demos</h6>
<ul>
<li><a href="http://jquerymobile.com/" title="Visit the jQuery Mobile web site">jquerymobile.com</a></li>
<li><a href="https://github.com/jquery/jquery-mobile" title="Visit the jQuery Mobile GitHub repository">GitHub repository</a></li>
</ul>
<p>Copyright jQuery Foundation</p>
</div><!-- /footer -->

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

</div><!-- /page -->

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

</body>
</html>
@@ -16,10 +16,10 @@
<div data-role="page" class="jqm-demos" data-quicklinks="true">

<div data-role="toolbar" data-type="header" class="jqm-header">
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquery-logo.png" alt="jQuery Mobile"></a></h2>
<p><span class="jqm-version"></span> Demos</p>
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquerymobile-logo.png" alt="jQuery Mobile"></a></h2>
<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>
<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>
<div class="jqm-banner"><h3>Version <span class="jqm-version"></span> Demos</h3></div>
</div><!-- /header -->

<div role="main" class="ui-content jqm-content">
@@ -130,13 +130,17 @@
<?php include( '../jqm-navmenu.php' ); ?>

<div data-role="toolbar" data-type="footer" data-position="fixed" data-tap-toggle="false" class="jqm-footer">
<p>jQuery Mobile Demos version <span class="jqm-version"></span></p>
<h6>jQuery Mobile Version <span class="jqm-version"></span> Demos</h6>
<ul>
<li><a href="http://jquerymobile.com/" title="Visit the jQuery Mobile web site">jquerymobile.com</a></li>
<li><a href="https://github.com/jquery/jquery-mobile" title="Visit the jQuery Mobile GitHub repository">GitHub repository</a></li>
</ul>
<p>Copyright jQuery Foundation</p>
</div><!-- /footer -->

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

</div><!-- /page -->

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

</body>
</html>
@@ -23,8 +23,8 @@ $.mobile.document.on( "pagecreate", "#demo-page", function(){
$( function(){
$.mobile.window.on( "scroll", function( e ) {
var headTop = $(window).scrollTop(),
foot = $( ".ui-page-active [data-role='footer']" ),
head = $( ".ui-page-active [data-role='header']" ),
foot = $( ".ui-page-active .ui-toolbar-header" ),
head = $( ".ui-page-active .ui-toolbar-footer" ),
headerheight = head.outerHeight();

if( headTop < headerheight && headTop > 0 ) {
@@ -18,10 +18,10 @@
<div data-role="page" class="jqm-demos">

<div data-role="toolbar" data-type="header" class="jqm-header">
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquery-logo.png" alt="jQuery Mobile"></a></h2>
<p><span class="jqm-version"></span> Demos</p>
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquerymobile-logo.png" alt="jQuery Mobile"></a></h2>
<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>
<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>
<div class="jqm-banner"><h3>Version <span class="jqm-version"></span> Demos</h3></div>
</div><!-- /header -->

<div role="main" class="ui-content jqm-content">
@@ -30,7 +30,7 @@

<p>This demo shows the linkbar extension that adds a fixed positioned bar on the right of the screen that makes it easy to anchor down to a specific part of a listview. View the source to see how it works.</p>

<a href="autodividers-linkbar-demo.html" data-ajax="false" class="ui-shadow ui-button ui-corner-all ui-button-inline ui-mini">Open demo<span class="ui-icon ui-icon-arrow-r"></span></a>
<a href="autodividers-linkbar-demo.html" data-ajax="false" class="ui-shadow ui-button ui-corner-all ui-button-inline ui-mini">Open demo <span class="ui-icon ui-icon-arrow-r"></span></a>

<div data-demo-html="#demo-page" data-demo-js="#demo-script" data-demo-css="#demo-style"></div><!--/demo-html -->

@@ -43,17 +43,17 @@
<p>Copyright jQuery Foundation</p>
</div><!-- /footer -->

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

</div><!-- /page -->

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

<!-- The markup below is a copy of the actual demo page just so we can show the markup in the "view source" -->

<div data-role="page" id="demo-page">

<div data-role="toolbar" data-type="header">
<h1>Listview Autodivider Linkbar</h1>
<a href="#" class="jqm-search-link ui-shadow 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>
<a href="#" class="jqm-search-link ui-shadow 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>
</div><!-- /header -->

<div role="main" class="ui-content">
@@ -34,10 +34,10 @@
<div data-role="page" class="jqm-demos">

<div data-role="toolbar" data-type="header" class="jqm-header">
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquery-logo.png" alt="jQuery Mobile"></a></h2>
<p><span class="jqm-version"></span> Demos</p>
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquerymobile-logo.png" alt="jQuery Mobile"></a></h2>
<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>
<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>
<div class="jqm-banner"><h3>Version <span class="jqm-version"></span> Demos</h3></div>
</div><!-- /header -->

<div role="main" class="ui-content jqm-content">
@@ -72,13 +72,17 @@
<?php include( '../jqm-navmenu.php' ); ?>

<div data-role="toolbar" data-type="footer" data-position="fixed" data-tap-toggle="false" class="jqm-footer">
<p>jQuery Mobile Demos version <span class="jqm-version"></span></p>
<h6>jQuery Mobile Version <span class="jqm-version"></span> Demos</h6>
<ul>
<li><a href="http://jquerymobile.com/" title="Visit the jQuery Mobile web site">jquerymobile.com</a></li>
<li><a href="https://github.com/jquery/jquery-mobile" title="Visit the jQuery Mobile GitHub repository">GitHub repository</a></li>
</ul>
<p>Copyright jQuery Foundation</p>
</div><!-- /footer -->

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

</div><!-- /page -->

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

</body>
</html>
@@ -35,10 +35,10 @@
<div data-role="page" class="jqm-demos" data-quicklinks="true">

<div data-role="toolbar" data-type="header" class="jqm-header">
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquery-logo.png" alt="jQuery Mobile"></a></h2>
<p><span class="jqm-version"></span> Demos</p>
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquerymobile-logo.png" alt="jQuery Mobile"></a></h2>
<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>
<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>
<div class="jqm-banner"><h3>Version <span class="jqm-version"></span> Demos</h3></div>
</div><!-- /header -->

<div role="main" class="ui-content jqm-content">
@@ -71,7 +71,7 @@
<li data-role="collapsible" data-iconpos="right" data-inset="false">
<h2>Choose your preference</h2>
<form>
<fieldset data-role="controlgroup" data-type="horizontal">
<fieldset data-role="controlgroup">
<label>Birds<input type="checkbox" id="choose-birds-regular"></label>
<label>Humans<input type="checkbox" id="choose-humans-regular"></label>
<label>Fish<input type="checkbox" id="choose-fish-regular"></label>
@@ -105,7 +105,7 @@
<li data-role="collapsible" data-iconpos="right" data-inset="false">
<h2>Choose your preference</h2>
<form>
<fieldset data-role="controlgroup" data-type="horizontal">
<fieldset data-role="controlgroup">
<label>Birds<input type="checkbox" id="choose-birds-inset"></label>
<label>Humans<input type="checkbox" id="choose-humans-inset"></label>
<label>Fish<input type="checkbox" id="choose-fish-inset"></label>
@@ -120,13 +120,17 @@
<?php include( '../jqm-navmenu.php' ); ?>

<div data-role="toolbar" data-type="footer" data-position="fixed" data-tap-toggle="false" class="jqm-footer">
<p>jQuery Mobile Demos version <span class="jqm-version"></span></p>
<h6>jQuery Mobile Version <span class="jqm-version"></span> Demos</h6>
<ul>
<li><a href="http://jquerymobile.com/" title="Visit the jQuery Mobile web site">jquerymobile.com</a></li>
<li><a href="https://github.com/jquery/jquery-mobile" title="Visit the jQuery Mobile GitHub repository">GitHub repository</a></li>
</ul>
<p>Copyright jQuery Foundation</p>
</div><!-- /footer -->

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

</div><!-- /page -->

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

</body>
</html>
@@ -63,10 +63,10 @@
<div data-role="page" class="jqm-demos" data-quicklinks="true">

<div data-role="toolbar" data-type="header" class="jqm-header">
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquery-logo.png" alt="jQuery Mobile"></a></h2>
<p><span class="jqm-version"></span> Demos</p>
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquerymobile-logo.png" alt="jQuery Mobile"></a></h2>
<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>
<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>
<div class="jqm-banner"><h3>Version <span class="jqm-version"></span> Demos</h3></div>
</div><!-- /header -->

<div role="main" class="ui-content jqm-content">
@@ -99,7 +99,7 @@
<li data-role="collapsible" data-iconpos="right" data-shadow="false" data-corners="false">
<h2>Choose your preference</h2>
<form>
<fieldset data-role="controlgroup" data-type="horizontal">
<fieldset data-role="controlgroup">
<label>Birds<input type="checkbox" id="choose-birds-regular"></label>
<label>Humans<input type="checkbox" id="choose-humans-regular"></label>
<label>Fish<input type="checkbox" id="choose-fish-regular"></label>
@@ -133,7 +133,7 @@
<li data-role="collapsible" data-iconpos="right" data-shadow="false" data-corners="false">
<h2>Choose your preference</h2>
<form>
<fieldset data-role="controlgroup" data-type="horizontal">
<fieldset data-role="controlgroup">
<label>Birds<input type="checkbox" id="choose-birds-regular"></label>
<label>Humans<input type="checkbox" id="choose-humans-regular"></label>
<label>Fish<input type="checkbox" id="choose-fish-regular"></label>
@@ -148,13 +148,17 @@
<?php include( '../jqm-navmenu.php' ); ?>

<div data-role="toolbar" data-type="footer" data-position="fixed" data-tap-toggle="false" class="jqm-footer">
<p>jQuery Mobile Demos version <span class="jqm-version"></span></p>
<h6>jQuery Mobile Version <span class="jqm-version"></span> Demos</h6>
<ul>
<li><a href="http://jquerymobile.com/" title="Visit the jQuery Mobile web site">jquerymobile.com</a></li>
<li><a href="https://github.com/jquery/jquery-mobile" title="Visit the jQuery Mobile GitHub repository">GitHub repository</a></li>
</ul>
<p>Copyright jQuery Foundation</p>
</div><!-- /footer -->

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

</div><!-- /page -->

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

</body>
</html>
@@ -17,10 +17,10 @@
<div data-role="page" class="jqm-demos">

<div data-role="toolbar" data-type="header" class="jqm-header">
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquery-logo.png" alt="jQuery Mobile"></a></h2>
<p><span class="jqm-version"></span> Demos</p>
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquerymobile-logo.png" alt="jQuery Mobile"></a></h2>
<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>
<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>
<div class="jqm-banner"><h3>Version <span class="jqm-version"></span> Demos</h3></div>
</div><!-- /header -->

<div role="main" class="ui-content jqm-content">
@@ -37,7 +37,7 @@

<p>The list items have a thumbail. In the grid layout those will get the same size as the tile. One list item doesn't hold an image to demonstrate how you can take advantage of class <code>ui-listview-item-has-thumbnail</code> to adjust the style.</p>

<a href="listview-grid.html" data-ajax="false" class="ui-shadow ui-button ui-corner-all ui-button-inline ui-mini">Open demo<span class="ui-icon ui-icon-arrow-r"></span></a>
<a href="listview-grid.html" data-ajax="false" class="ui-shadow ui-button ui-corner-all ui-button-inline ui-mini">Open demo <span class="ui-icon ui-icon-arrow-r"></span></a>

<div data-demo-html="#demo-page" data-demo-css="#listview-grid-css"></div>

@@ -46,14 +46,18 @@
<?php include( '../jqm-navmenu.php' ); ?>

<div data-role="toolbar" data-type="footer" data-position="fixed" data-tap-toggle="false" class="jqm-footer">
<p>jQuery Mobile Demos version <span class="jqm-version"></span></p>
<h6>jQuery Mobile Version <span class="jqm-version"></span> Demos</h6>
<ul>
<li><a href="http://jquerymobile.com/" title="Visit the jQuery Mobile web site">jquerymobile.com</a></li>
<li><a href="https://github.com/jquery/jquery-mobile" title="Visit the jQuery Mobile GitHub repository">GitHub repository</a></li>
</ul>
<p>Copyright jQuery Foundation</p>
</div><!-- /footer -->

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

</div><!-- /page -->

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

<!-- The markup below is a copy of the actual demo page just so we can show the markup in the "view source" -->

<div data-role="page" data-theme="b" id="demo-page" class="my-page">
@@ -17,18 +17,18 @@
<div data-role="page" class="jqm-demos" data-quicklinks="true">

<div data-role="toolbar" data-type="header" class="jqm-header">
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquery-logo.png" alt="jQuery Mobile"></a></h2>
<p><span class="jqm-version"></span> Demos</p>
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquerymobile-logo.png" alt="jQuery Mobile"></a></h2>
<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>
<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>
<div class="jqm-banner"><h3>Version <span class="jqm-version"></span> Demos</h3></div>
</div><!-- /header -->

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

<h1>Nested Listviews</h1>

<p>Nested listviews were deprecated in jQuery Mobile 1.3 and were removed in 1.4. For those wishing to use the 1.3 behavior there is a plugin available at <a href="https://github.com/arschmitz/jquery-mobile-nestedlists/">https://github.com/arschmitz/jquery-mobile-nestedlists/</a>. With this plugin you can use the same markup. All you need to do to be able to use "jQuery Mobile 1.3 style" nested listviews is drop the plugin script in after the jQuery Mobile script.</p>

<div data-demo-html="true" data-demo-js="#script">
<ul data-role="listview" data-inset="true">
<li data-role="list-divider" data-theme="b"><h1>Separate Page Sublists</h1></li>
@@ -99,13 +99,17 @@
<?php include( '../jqm-navmenu.php' ); ?>

<div data-role="toolbar" data-type="footer" data-position="fixed" data-tap-toggle="false" class="jqm-footer">
<p>jQuery Mobile Demos version <span class="jqm-version"></span></p>
<h6>jQuery Mobile Version <span class="jqm-version"></span> Demos</h6>
<ul>
<li><a href="http://jquerymobile.com/" title="Visit the jQuery Mobile web site">jquerymobile.com</a></li>
<li><a href="https://github.com/jquery/jquery-mobile" title="Visit the jQuery Mobile GitHub repository">GitHub repository</a></li>
</ul>
<p>Copyright jQuery Foundation</p>
</div><!-- /footer -->

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

</div><!-- /page -->

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

</body>
</html>
@@ -23,15 +23,17 @@
<div data-role="page" class="jqm-demos" data-quicklinks="true">

<div data-role="toolbar" data-type="header" class="jqm-header">
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquery-logo.png" alt="jQuery Mobile"></a></h2>
<p><span class="jqm-version"></span> Demos</p>
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquerymobile-logo.png" alt="jQuery Mobile"></a></h2>
<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>
<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>
<div class="jqm-banner"><h3>Version <span class="jqm-version"></span> Demos</h3></div>
</div><!-- /header -->

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

<h1>Listview <a href="http://api.jquerymobile.com/listview/" 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>
<h1>Listview</h1>

<a href="http://api.jquerymobile.com/listview/" class="jqm-api-docs-link ui-nodisc-icon ui-alt-icon" title="Visit the API Documentation" target="_blank">API Documentation <span class="ui-icon ui-icon-action"></span></a>

<p>A listview is coded as a simple unordered list (ul) or ordered list (ol) with a <code> data-role="listview"</code> attribute and has a wide range of features.
</p>
@@ -233,7 +235,7 @@
<div data-role="popup" id="purchase" data-theme="a" data-overlay-theme="b" class="ui-content" style="max-width:340px; padding-bottom:2em;">
<h3>Purchase Album?</h3>
<p>Your download will begin immediately on your mobile device when you purchase.</p>
<a href="index.php" data-rel="back" class="ui-shadow ui-button ui-corner-all ui-button-b ui-button-inline ui-mini">Buy: $10.99<span class="ui-icon ui-icon-check"></span></a>
<a href="index.php" data-rel="back" class="ui-shadow ui-button ui-corner-all ui-button-b ui-button-inline ui-mini">Buy: $10.99 <span class="ui-icon ui-icon-check"></span></a>
<a href="index.php" data-rel="back" class="ui-shadow ui-button ui-corner-all ui-button-inline ui-mini">Cancel</a>
</div>
</div><!--/demo-html -->
@@ -503,13 +505,17 @@
<?php include( '../jqm-navmenu.php' ); ?>

<div data-role="toolbar" data-type="footer" data-position="fixed" data-tap-toggle="false" class="jqm-footer">
<p>jQuery Mobile Demos version <span class="jqm-version"></span></p>
<h6>jQuery Mobile Version <span class="jqm-version"></span> Demos</h6>
<ul>
<li><a href="http://jquerymobile.com/" title="Visit the jQuery Mobile web site">jquerymobile.com</a></li>
<li><a href="https://github.com/jquery/jquery-mobile" title="Visit the jQuery Mobile GitHub repository">GitHub repository</a></li>
</ul>
<p>Copyright jQuery Foundation</p>
</div><!-- /footer -->

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

</div><!-- /page -->

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

</body>
</html>
@@ -36,15 +36,17 @@
<div data-role="page" class="jqm-demos" data-quicklinks="true">

<div data-role="toolbar" data-type="header" class="jqm-header">
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquery-logo.png" alt="jQuery Mobile"></a></h2>
<p><span class="jqm-version"></span> Demos</p>
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquerymobile-logo.png" alt="jQuery Mobile"></a></h2>
<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>
<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>
<div class="jqm-banner"><h3>Version <span class="jqm-version"></span> Demos</h3></div>
</div><!-- /header -->

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

<h1>Loader <a href="http://api.jquerymobile.com/loader/" 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>
<h1>Loader</h1>

<a href="http://api.jquerymobile.com/loader/" class="jqm-api-docs-link ui-nodisc-icon ui-alt-icon" title="Visit the API Documentation" target="_blank">API Documentation <span class="ui-icon ui-icon-action"></span></a>

<p>A small loading overlay displayed when jQuery Mobile loads in content via Ajax, or for use in custom notifications.
</p>
@@ -62,7 +64,7 @@
<h2>Custom HTML</h2>
<p>Any HTML can be added to the loader overlay</p>
<div data-demo-html="true" data-demo-js="true">
<button class="show-page-loading-msg" data-theme="b" data-textonly="true" data-textvisible="true" data-msgtext="Custom Loader" data-inline="true" data-html="&lt;span class=&quot;ui-bar ui-shadow ui-overlay-d ui-corner-all&quot;&gt;&lt;img src=&quot;../_assets/img/jquery-logo.png&quot;&gt;&lt;h2&gt;is loading for you ...&lt;/h2&gt;&lt;/span&gt;">Custom HTML</button>
<button class="show-page-loading-msg" data-theme="b" data-textonly="true" data-textvisible="true" data-msgtext="Custom Loader" data-inline="true" data-html="&lt;span class=&quot;ui-bar ui-shadow ui-overlay-d ui-corner-all&quot;&gt;&lt;img src=&quot;../_assets/img/jquerymobile-logo.png&quot;&gt;&lt;h2&gt;is loading for you ...&lt;/h2&gt;&lt;/span&gt;">Custom HTML</button>
<button class="hide-page-loading-msg" data-inline="true" data-icon="ui-icon-delete">Hide</button>

</div><!--/demo-html -->
@@ -81,13 +83,17 @@
<?php include( '../jqm-navmenu.php' ); ?>

<div data-role="toolbar" data-type="footer" data-position="fixed" data-tap-toggle="false" class="jqm-footer">
<p>jQuery Mobile Demos version <span class="jqm-version"></span></p>
<h6>jQuery Mobile Version <span class="jqm-version"></span> Demos</h6>
<ul>
<li><a href="http://jquerymobile.com/" title="Visit the jQuery Mobile web site">jquerymobile.com</a></li>
<li><a href="https://github.com/jquery/jquery-mobile" title="Visit the jQuery Mobile GitHub repository">GitHub repository</a></li>
</ul>
<p>Copyright jQuery Foundation</p>
</div><!-- /footer -->

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

</div><!-- /page -->

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

</body>
</html>
@@ -64,10 +64,10 @@ function drawMap(latlng) {
<div data-role="page" class="jqm-demos">

<div data-role="toolbar" data-type="header" class="jqm-header">
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquery-logo.png" alt="jQuery Mobile"></a></h2>
<p><span class="jqm-version"></span> Demos</p>
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquerymobile-logo.png" alt="jQuery Mobile"></a></h2>
<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>
<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>
<div class="jqm-banner"><h3>Version <span class="jqm-version"></span> Demos</h3></div>
</div><!-- /header -->

<div role="main" class="ui-content jqm-content">
@@ -82,7 +82,7 @@ function drawMap(latlng) {
<li>How to display a default location (Hollywood, CA) if Geolocation is unavailable or a user declines to share it.</li>
</ul>

<a href="#map-page" data-ajax="false" class="ui-shadow ui-button ui-corner-all ui-button-inline ui-mini">Open demo<span class="ui-icon ui-icon-arrow-r"></span></a>
<a href="#map-page" data-ajax="false" class="ui-shadow ui-button ui-corner-all ui-button-inline ui-mini">Open demo <span class="ui-icon ui-icon-arrow-r"></span></a>

<div data-demo-html="#map-page" data-demo-js="true" data-demo-css="true"></div><!--/demo-html -->

@@ -91,14 +91,18 @@ function drawMap(latlng) {
<?php include( '../jqm-navmenu.php' ); ?>

<div data-role="toolbar" data-type="footer" data-position="fixed" data-tap-toggle="false" class="jqm-footer">
<p>jQuery Mobile Demos version <span class="jqm-version"></span></p>
<h6>jQuery Mobile Version <span class="jqm-version"></span> Demos</h6>
<ul>
<li><a href="http://jquerymobile.com/" title="Visit the jQuery Mobile web site">jquerymobile.com</a></li>
<li><a href="https://github.com/jquery/jquery-mobile" title="Visit the jQuery Mobile GitHub repository">GitHub repository</a></li>
</ul>
<p>Copyright jQuery Foundation</p>
</div><!-- /footer -->

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

</div><!-- /page -->

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

<div data-role="page" id="map-page">
<div data-role="toolbar" data-type="header" data-theme="a">
<h1>Maps</h1>
@@ -19,7 +19,7 @@
width: 100%;
height: 100%;
}

#map-canvas {
width: 100%;
height: 100%;
@@ -129,10 +129,10 @@
<div data-role="page" class="jqm-demos">

<div data-role="toolbar" data-type="header" class="jqm-header">
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquery-logo.png" alt="jQuery Mobile"></a></h2>
<p><span class="jqm-version"></span> Demos</p>
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquerymobile-logo.png" alt="jQuery Mobile"></a></h2>
<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>
<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>
<div class="jqm-banner"><h3>Version <span class="jqm-version"></span> Demos</h3></div>
</div><!-- /header -->

<div role="main" class="ui-content jqm-content">
@@ -147,7 +147,7 @@
<li>How to display an info box on the map when a push pin is tapped.</li>
</ul>

<a href="#map-page" data-ajax="false" class="ui-shadow ui-button ui-corner-all ui-button-inline ui-mini">Open demo<span class="ui-icon ui-icon-arrow-r"></span></a>
<a href="#map-page" data-ajax="false" class="ui-shadow ui-button ui-corner-all ui-button-inline ui-mini">Open demo <span class="ui-icon ui-icon-arrow-r"></span></a>

<div data-demo-html="#map-page" data-demo-js="true" data-demo-css="true"></div><!--/demo-html -->

@@ -156,18 +156,22 @@
<?php include( '../jqm-navmenu.php' ); ?>

<div data-role="toolbar" data-type="footer" data-position="fixed" data-tap-toggle="false" class="jqm-footer">
<p>jQuery Mobile Demos version <span class="jqm-version"></span></p>
<h6>jQuery Mobile Version <span class="jqm-version"></span> Demos</h6>
<ul>
<li><a href="http://jquerymobile.com/" title="Visit the jQuery Mobile web site">jquerymobile.com</a></li>
<li><a href="https://github.com/jquery/jquery-mobile" title="Visit the jQuery Mobile GitHub repository">GitHub repository</a></li>
</ul>
<p>Copyright jQuery Foundation</p>
</div><!-- /footer -->

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

</div><!-- /page -->

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

<div data-role="page" id="map-page">
<div data-role="toolbar" data-type="header" data-position="fixed">
<div class="segmented-control ui-bar-d">
<fieldset data-role="controlgroup" data-type="horizontal" data-mini="true">
<fieldset data-role="controlgroup" data-mini="true">
<input type="radio" name="switch" id="list-switch" checked="true">
<label for="list-switch">List</label>
<input type="radio" name="switch" id="map-switch">
@@ -25,15 +25,17 @@
<div data-role="page" class="jqm-demos" data-quicklinks="true">

<div data-role="toolbar" data-type="header" class="jqm-header">
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquery-logo.png" alt="jQuery Mobile"></a></h2>
<p><span class="jqm-version"></span> Demos</p>
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquerymobile-logo.png" alt="jQuery Mobile"></a></h2>
<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>
<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>
<div class="jqm-banner"><h3>Version <span class="jqm-version"></span> Demos</h3></div>
</div><!-- /header -->

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

<h1>Navbar <a href="http://api.jquerymobile.com/navbar/" 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>
<h1>Navbar</h1>

<a href="http://api.jquerymobile.com/navbar/" class="jqm-api-docs-link ui-nodisc-icon ui-alt-icon" title="Visit the API Documentation" target="_blank">API Documentation <span class="ui-icon ui-icon-action"></span></a>

<p>jQuery Mobile has a navbar widget that is useful for providing buttons with optional icons in a bar. The navbar can support any number of buttons resorting to multiple rows when the number of buttons exceeds the <code>maxbuttons</code> option. Alternatively, if you set the <code>morebutton</code> option you will turn the final button in the row into a popup that contains the remaining buttons</p>

@@ -105,7 +107,7 @@

<h2>Multi-row</h2>

<p>If more than the set <code>maxbutton</code> items are added, the navbar will smart wrap the items
<p>If more than the set <code>maxbutton</code> items are added, the navbar will smart wrap the items
n-across up to the value of the <code>maxbutton</code>option and then fill the remaining rows to full width:</p>

<div data-demo-html="true">
@@ -129,8 +131,8 @@
</div><!--/demo-html -->

<h2> Show More Button </h2>
<p>If more than the set <code>maxbutton</code> items are added and the <code>morebutton</code>
option is set to <code>true</code>, the navbar will add the extra items to a popup that
<p>If more than the set <code>maxbutton</code> items are added and the <code>morebutton</code>
option is set to <code>true</code>, the navbar will add the extra items to a popup that
resides on the last button in the row of buttons</p>

<div data-demo-html="true">
@@ -154,8 +156,8 @@
</div><!--/demo-html -->

<h2> Show More Button with icon</h2>
<p>If more than the set <code>maxbutton</code> items are added and the <code>morebutton</code>
option is set to <code>true</code>, the navbar will add the extra items to a popup that
<p>If more than the set <code>maxbutton</code> items are added and the <code>morebutton</code>
option is set to <code>true</code>, the navbar will add the extra items to a popup that
resides on the last button in the row of buttons. An icon can be added by adding the
<code>data-morebuttonicon</code> attribute and specifying an icon</p>

@@ -378,13 +380,17 @@
<?php include( '../jqm-navmenu.php' ); ?>

<div data-role="toolbar" data-type="footer" data-position="fixed" data-tap-toggle="false" class="jqm-footer">
<p>jQuery Mobile Demos version <span class="jqm-version"></span></p>
<h6>jQuery Mobile Version <span class="jqm-version"></span> Demos</h6>
<ul>
<li><a href="http://jquerymobile.com/" title="Visit the jQuery Mobile web site">jquerymobile.com</a></li>
<li><a href="https://github.com/jquery/jquery-mobile" title="Visit the jQuery Mobile GitHub repository">GitHub repository</a></li>
</ul>
<p>Copyright jQuery Foundation</p>
</div><!-- /footer -->

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

</div><!-- /page -->

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

</body>
</html>
@@ -76,61 +76,65 @@
</script>
</head>
<body>
<div id="main-page" data-role="page" class="jqm-demos" data-quicklinks="true">

<div data-role="toolbar" data-type="header" class="jqm-header">
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquery-logo.png" alt="jQuery Mobile"></a></h2>
<p><span class="jqm-version"></span> Demos</p>
<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>
<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>
</div><!-- /header -->

<div role="main" class="ui-content jqm-content">
<h1>Hash Processing</h1>
<p>If you wish to perform processing on the hash values as a user clicks the links to the various internal pages in your application, you can do so by handling the events <code>pagebeforechange</code> and <code>pagecontainerbeforetransition</code>.</p>
<div data-demo-html="#demo-page,#secondary-page" data-demo-js="#demo-script">
<a href="#demo-page" class="ui-button ui-corner-all ui-shadow ui-button-inline">Open Demo</a>
</div>
</div><!-- /content -->

<?php include( '../jqm-navmenu.php' ); ?>
<div id="main-page" data-role="page" class="jqm-demos" data-quicklinks="true">

<div data-role="toolbar" data-type="header" class="jqm-header">
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquerymobile-logo.png" alt="jQuery Mobile"></a></h2>
<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>
<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>
<div class="jqm-banner"><h3>Version <span class="jqm-version"></span> Demos</h3></div>
</div><!-- /header -->

<div role="main" class="ui-content jqm-content">
<h1>Hash Processing</h1>
<p>If you wish to perform processing on the hash values as a user clicks the links to the various internal pages in your application, you can do so by handling the events <code>pagebeforechange</code> and <code>pagecontainerbeforetransition</code>.</p>
<div data-demo-html="#demo-page,#secondary-page" data-demo-js="#demo-script">
<a href="#demo-page" class="ui-button ui-corner-all ui-shadow ui-button-inline">Open Demo</a>
</div>
</div><!-- /content -->

<div data-role="toolbar" data-type="footer" data-position="fixed" data-tap-toggle="false" class="jqm-footer">
<p>jQuery Mobile Demos version <span class="jqm-version"></span></p>
<p>Copyright jQuery Foundation</p>
</div><!-- /footer -->
<?php include( '../jqm-navmenu.php' ); ?>

<?php include( '../jqm-search.php' ); ?>
<div data-role="toolbar" data-type="footer" data-position="fixed" data-tap-toggle="false" class="jqm-footer">
<h6>jQuery Mobile Version <span class="jqm-version"></span> Demos</h6>
<ul>
<li><a href="http://jquerymobile.com/" title="Visit the jQuery Mobile web site">jquerymobile.com</a></li>
<li><a href="https://github.com/jquery/jquery-mobile" title="Visit the jQuery Mobile GitHub repository">GitHub repository</a></li>
</ul>
<p>Copyright jQuery Foundation</p>
</div><!-- /footer -->

</div><!-- /page -->

<div id="demo-page" data-role="page">
<div data-role="toolbar" data-type="header">
<a href="#main-page" class="ui-button">Back To Demos<span class="ui-icon ui-icon-back"></span></a>
<h1>Demo Main Page</h1>
</div>
<div role="main" class="ui-content">
<p>The following three buttons all take you to the same page. However, when you get there, you will notice that the title of the page is different depending on which button you have clicked.</p>
<a href="#secondary-page?section=My Area" class="ui-button ui-corner-all ui-shadow ui-button-inline">My Area</a>
<a href="#secondary-page?section=My Friends" class="ui-button ui-corner-all ui-shadow ui-button-inline">My Friends</a>
<a href="#secondary-page?section=My Items" class="ui-button ui-corner-all ui-shadow ui-button-inline">My Items</a>
</div>
<?php include( '../jqm-search.php' ); ?>

<div id="demo-page" data-role="page">
<div data-role="toolbar" data-type="header">
<a href="#main-page" class="ui-button">Back To Demos <span class="ui-icon ui-icon-back"></span></a>
<h1>Demo Main Page</h1>
</div>
<div role="main" class="ui-content">
<p>The following three buttons all take you to the same page. However, when you get there, you will notice that the title of the page is different depending on which button you have clicked.</p>
<a href="#secondary-page?section=My Area" class="ui-button ui-corner-all ui-shadow ui-button-inline">My Area</a>
<a href="#secondary-page?section=My Friends" class="ui-button ui-corner-all ui-shadow ui-button-inline">My Friends</a>
<a href="#secondary-page?section=My Items" class="ui-button ui-corner-all ui-shadow ui-button-inline">My Items</a>
</div>
</div>

<div id="secondary-page" data-role="page">
<div data-role="toolbar" data-type="header">
<a href="#demo-page" class="ui-button">Back To Main Page<span class="ui-icon ui-icon-back"></span></a>
<a href="#main-page" class="ui-button">Back To Demos<span class="ui-icon ui-icon-arrow-u"></span></a>
<h1 id="section"></h1>
</div>
<div role="main" class="ui-content">
<p>This is the second page in the demo. Notice that, as you navigate to this page from the main page, the title of this page changes depending on which button on the main page you clicked.</p>
<p>You can also navigate to this same page with different parameters using the links below:</p>
<a href="#secondary-page?section=My Area" class="ui-button ui-corner-all ui-shadow ui-button-inline">My Area</a>
<a href="#secondary-page?section=My Friends" class="ui-button ui-corner-all ui-shadow ui-button-inline">My Friends</a>
<a href="#secondary-page?section=My Items" class="ui-button ui-corner-all ui-shadow ui-button-inline">My Items</a>
</div>
<div id="secondary-page" data-role="page">
<div data-role="toolbar" data-type="header">
<a href="#demo-page" class="ui-button">Back To Main Page <span class="ui-icon ui-icon-back"></span></a>
<a href="#main-page" class="ui-button">Back To Demos <span class="ui-icon ui-icon-arrow-u"></span></a>
<h1 id="section"></h1>
</div>
<div role="main" class="ui-content">
<p>This is the second page in the demo. Notice that, as you navigate to this page from the main page, the title of this page changes depending on which button on the main page you clicked.</p>
<p>You can also navigate to this same page with different parameters using the links below:</p>
<a href="#secondary-page?section=My Area" class="ui-button ui-corner-all ui-shadow ui-button-inline">My Area</a>
<a href="#secondary-page?section=My Friends" class="ui-button ui-corner-all ui-shadow ui-button-inline">My Friends</a>
<a href="#secondary-page?section=My Items" class="ui-button ui-corner-all ui-shadow ui-button-inline">My Items</a>
</div>
</div>

</body>
</html>
@@ -16,10 +16,10 @@
<div data-role="page" class="jqm-demos" data-quicklinks="true">

<div data-role="toolbar" data-type="header" class="jqm-header">
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquery-logo.png" alt="jQuery Mobile"></a></h2>
<p><span class="jqm-version"></span> Demos</p>
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquerymobile-logo.png" alt="jQuery Mobile"></a></h2>
<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>
<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>
<div class="jqm-banner"><h3>Version <span class="jqm-version"></span> Demos</h3></div>
</div><!-- /header -->

<div role="main" class="ui-content jqm-content">
@@ -116,13 +116,17 @@
<?php include( '../jqm-navmenu.php' ); ?>

<div data-role="toolbar" data-type="footer" data-position="fixed" data-tap-toggle="false" class="jqm-footer">
<p>jQuery Mobile Demos version <span class="jqm-version"></span></p>
<h6>jQuery Mobile Version <span class="jqm-version"></span> Demos</h6>
<ul>
<li><a href="http://jquerymobile.com/" title="Visit the jQuery Mobile web site">jquerymobile.com</a></li>
<li><a href="https://github.com/jquery/jquery-mobile" title="Visit the jQuery Mobile GitHub repository">GitHub repository</a></li>
</ul>
<p>Copyright jQuery Foundation</p>
</div><!-- /footer -->

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

</div><!-- /page -->

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

</body>
</html>
@@ -45,10 +45,10 @@
<div data-role="page" class="jqm-demos">

<div data-role="toolbar" data-type="header" class="jqm-header">
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquery-logo.png" alt="jQuery Mobile"></a></h2>
<p><span class="jqm-version"></span> Demos</p>
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquerymobile-logo.png" alt="jQuery Mobile"></a></h2>
<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>
<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>
<div class="jqm-banner"><h3>Version <span class="jqm-version"></span> Demos</h3></div>
</div><!-- /header -->

<div role="main" class="ui-content jqm-content">
@@ -68,13 +68,17 @@
<?php include( '../jqm-navmenu.php' ); ?>

<div data-role="toolbar" data-type="footer" data-position="fixed" data-tap-toggle="false" class="jqm-footer">
<p>jQuery Mobile Demos version <span class="jqm-version"></span></p>
<h6>jQuery Mobile Version <span class="jqm-version"></span> Demos</h6>
<ul>
<li><a href="http://jquerymobile.com/" title="Visit the jQuery Mobile web site">jquerymobile.com</a></li>
<li><a href="https://github.com/jquery/jquery-mobile" title="Visit the jQuery Mobile GitHub repository">GitHub repository</a></li>
</ul>
<p>Copyright jQuery Foundation</p>
</div><!-- /footer -->

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

</div><!-- /page -->

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

</body>
</html>
@@ -17,29 +17,27 @@
<div data-role="page" class="jqm-demos" data-quicklinks="true">

<div data-role="toolbar" data-type="header" class="jqm-header">
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquery-logo.png" alt="jQuery Mobile"></a></h2>
<p><span class="jqm-version"></span> Demos</p>
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquerymobile-logo.png" alt="jQuery Mobile"></a></h2>
<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>
<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>
<div class="jqm-banner"><h3>Version <span class="jqm-version"></span> Demos</h3></div>
</div><!-- /header -->

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

<h1>Ajax Navigation</h1>

<p>The <code>$.mobile.navigate</code> method and the <code>navigate</code> event form the foundation of jQuery Mobile's navigation infrastructure. As such, they can function outside the confines of jQuery Mobile as a clean and intuitive navigation/history API.
</p>
<p>The <code>$.mobile.navigate</code> method and the <code>navigate</code> event form the foundation of jQuery Mobile's navigation infrastructure. As such, they can function outside the confines of jQuery Mobile as a clean and intuitive navigation/history API.</p>

<h2>Introduction</h2>

<p>jQuery Mobile includes a navigation system to load pages into the DOM via Ajax, enhance the new content, then display <a href="../pages/">pages</a> with a rich set of animated <a href="../transitions/" data-ajax="false">transitions</a>. The navigation system uses progressive enhancement to automatically 'hijack' standard links and form submissions and route them as an Ajax request.</p>

<p>One of jQuery Mobile's core features is the ability to load and view content from disparate pages into the initial document with support for standard navigation methods like anchors and the back button. To accomplish this the library has progressive support for <code>hashchange</code> and <code>popstate</code> coupled with internal history tracking which can be used à la carte.</p>

<p>An example use case would be something like Twitter's web client. The first step is to hijack link clicks on the page and use the URL that represents that UI state to track history with <code>$.mobile.navigate</code>. It's at this point that any additional information about the UI necessary for operation on return using the back button would be stored (see, <code>foo</code> property of the object argument to the navigate method).</p>
<p>An example use case would be something like Twitter's web client. The first step is to hijack link clicks on the page and use the URL that represents that UI state to track history with <code>$.mobile.navigate</code>. It's at this point that any additional information about the UI necessary for operation on return using the back button would be stored (see, <code>foo</code> property of the object argument to the navigate method).</p>

<pre>
<code>
<pre><code>
// Define a click binding for all anchors in the page
$( "a" ).on( "click", function( event ) {

@@ -55,11 +53,12 @@
// Hypothetical content alteration based on the url. E.g, make
// an Ajax request for JSON data and render a template into the page.
alterContent( $(this).attr("href") );
});</code></pre>
});
</code></pre>

<p>Next, a <code>navigate</code> event binding helps in responding to backward and forward navigation via the browsers history API. Here the <code>alterContent</code> function can address the direction in which the browser is navigating as well as any additional information stored on the data object when <code>$.mobile.navigate</code> was invoked to store the corresponding history entry.</p>
<p>Next, a <code>navigate</code> event binding helps in responding to backward and forward navigation via the browsers history API. Here the <code>alterContent</code> function can address the direction in which the browser is navigating as well as any additional information stored on the data object when <code>$.mobile.navigate</code> was invoked to store the corresponding history entry.</p>

<pre><code>
<pre><code>
// Respond to back/forward navigation
$( window ).on( "navigate", function( event, data ){
if ( data.state.foo ) {
@@ -72,15 +71,16 @@

// reset the content based on the url
alterContent( data.state.url );
});</code></pre>
});
</code></pre>

<h2>Event Example <a href="http://api.jquerymobile.com/navigate/" class="jqm-api-docs-link ui-button ui-nodisc-icon ui-alt-icon ui-button-inline ui-corner-all ui-mini">API</a><span class="ui-icon ui-icon-caret-r"></span></h2>
<h2>Event Example</h2>

<p>jQuery Mobile provides the <code>navigate</code> event as a wrapper for both <code>hashchange</code> and <code>popstate</code>. That is, where a binding to both events would be required to support browsers with and without <code>popstate</code> only one binding to <code>navigate</code> is necessary. In this example, altering the hash will trigger the <code>popstate</code> or <code>hashchange</code> event depending on the browser, but only a single <code>navigate</code> binding is necessary. Make sure to use the back button after alterting the hash to see that the event is fired in both cases.</p>

<p><em>Note: when viewing the console output, some browsers (eg, Chrome) fire a popstate on the initial page load</em></p>
<p><em>Note: When viewing the console output, some browsers (e.g. Chrome) fire a popstate on the initial page load</em></p>

<pre><code>
<pre><code>
// Bind to the navigate event
$( window ).on( "navigate", function() {
console.log( "navigated!" );
@@ -93,16 +93,17 @@
});
</code></pre>

<a href="#" id="event-example" class="ui-shadow ui-button ui-corner-all">Event Example</a>
<a href="#" id="event-example" class="ui-button ui-button-inline ui-shadow ui-corner-all">Event Example</a>

<p>See also the <a href="http://api.jquerymobile.com/navigate/" class="jqm-api-docs-link">API documentation</a> of the <code>navigate</code> event.</p>

<h2>Method Example <a href="http://api.jquerymobile.com/jQuery.mobile.navigate/" class="jqm-api-docs-link ui-button ui-nodisc-icon ui-alt-icon ui-button-inline ui-corner-all ui-mini">API</a><span class="ui-icon ui-icon-caret-r"></span></h2>
<h2>Method Example</h2>

<p>jQuery Mobile provides the <code>$.mobile.navigate</code> method as a means to track history and receive additional information along with <code>navigate</code> events. In this example, when the method example link is clicked, the url will be changed twice. The first time will it will store additional aribitrary information along with the URL and hash stored by the method. The second time it will simply change the url and store the URL and hash. When the browser moves backward through history the <code>navigate</code> event is triggered as in the event example above <em>but</em> along with it comes information about the direction of history traversal, the url, the hash, and the arbitrary data stored with the first call to the navigate method.</p>
<p>jQuery Mobile provides the <code>$.mobile.navigate</code> method as a means to track history and receive additional information along with <code>navigate</code> events. In this example, when the method example link is clicked, the url will be changed twice. The first time will it will store additional aribitrary information along with the URL and hash stored by the method. The second time it will simply change the url and store the URL and hash. When the browser moves backward through history the <code>navigate</code> event is triggered as in the event example above <em>but</em> along with it comes information about the direction of history traversal, the url, the hash, and the arbitrary data stored with the first call to the navigate method.</p>

<p><em>Note: The arbitrary state properties must be chosen carefully to avoid the url, hash, and direction properties. This is a shortcoming that will be addressed in future releases.</em></p>
<p><em>Note: The arbitrary state properties must be chosen carefully to avoid the url, hash, and direction properties. This is a shortcoming that will be addressed in future releases.</em></p>

<pre>
<code>
<pre><code>
// Bind to the click of the example link
$( "#method-example" ).click(function( event ) {
// Append #bar
@@ -124,22 +125,27 @@
// Go back to pop the state for #bar and log it
window.history.back();
});
</code>
</pre>
</code></pre>

<a href="#" id="method-example" class="ui-shadow ui-button ui-corner-all">Method Example</a>
<a href="#" id="method-example" class="ui-button ui-button-inline ui-shadow ui-corner-all">Method Example</a>

<p>See also the <a href="http://api.jquerymobile.com/jQuery.mobile.navigate/" class="jqm-api-docs-link">API documentation</a> of the <code>$.mobile.navigate</code> method.</p>
</div><!-- /content -->

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

<div data-role="toolbar" data-type="footer" data-position="fixed" data-tap-toggle="false" class="jqm-footer">
<p>jQuery Mobile Demos version <span class="jqm-version"></span></p>
<h6>jQuery Mobile Version <span class="jqm-version"></span> Demos</h6>
<ul>
<li><a href="http://jquerymobile.com/" title="Visit the jQuery Mobile web site">jquerymobile.com</a></li>
<li><a href="https://github.com/jquery/jquery-mobile" title="Visit the jQuery Mobile GitHub repository">GitHub repository</a></li>
</ul>
<p>Copyright jQuery Foundation</p>
</div><!-- /footer -->

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

</div><!-- /page -->

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

</body>
</html>
@@ -16,10 +16,10 @@
<div data-role="page" class="jqm-demos">

<div data-role="toolbar" data-type="header" class="jqm-header">
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquery-logo.png" alt="jQuery Mobile"></a></h2>
<p><span class="jqm-version"></span> Demos</p>
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquerymobile-logo.png" alt="jQuery Mobile"></a></h2>
<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>
<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>
<div class="jqm-banner"><h3>Version <span class="jqm-version"></span> Demos</h3></div>
</div><!-- /header -->

<div role="main" class="ui-content jqm-content">
@@ -39,13 +39,17 @@
<?php include( '../jqm-navmenu.php' ); ?>

<div data-role="toolbar" data-type="footer" data-position="fixed" data-tap-toggle="false" class="jqm-footer">
<p>jQuery Mobile Demos version <span class="jqm-version"></span></p>
<h6>jQuery Mobile Version <span class="jqm-version"></span> Demos</h6>
<ul>
<li><a href="http://jquerymobile.com/" title="Visit the jQuery Mobile web site">jquerymobile.com</a></li>
<li><a href="https://github.com/jquery/jquery-mobile" title="Visit the jQuery Mobile GitHub repository">GitHub repository</a></li>
</ul>
<p>Copyright jQuery Foundation</p>
</div><!-- /footer -->

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

</div><!-- /page -->

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

</body>
</html>
@@ -16,10 +16,10 @@
<div data-role="page" class="jqm-demos">

<div data-role="toolbar" data-type="header" class="jqm-header">
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquery-logo.png" alt="jQuery Mobile"></a></h2>
<p><span class="jqm-version"></span> Demos</p>
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquerymobile-logo.png" alt="jQuery Mobile"></a></h2>
<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>
<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>
<div class="jqm-banner"><h3>Version <span class="jqm-version"></span> Demos</h3></div>
</div><!-- /header -->

<div role="main" class="ui-content jqm-content">
@@ -39,13 +39,17 @@
<?php include( '../jqm-navmenu.php' ); ?>

<div data-role="toolbar" data-type="footer" data-position="fixed" data-tap-toggle="false" class="jqm-footer">
<p>jQuery Mobile Demos version <span class="jqm-version"></span></p>
<h6>jQuery Mobile Version <span class="jqm-version"></span> Demos</h6>
<ul>
<li><a href="http://jquerymobile.com/" title="Visit the jQuery Mobile web site">jquerymobile.com</a></li>
<li><a href="https://github.com/jquery/jquery-mobile" title="Visit the jQuery Mobile GitHub repository">GitHub repository</a></li>
</ul>
<p>Copyright jQuery Foundation</p>
</div><!-- /footer -->

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

</div><!-- /page -->

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

</body>
</html>