0
0
mirror of https://github.com/Doodle3D/doodle3d-connect.git synced 2024-11-15 02:37:56 +01:00
doodle3d-connect/js/libs/.jquery.mobile/demos/panel-external-internal/index.html
2014-05-08 14:59:07 +02:00

82 lines
2.3 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>External and internal panels</title>
<link rel="shortcut icon" href="../favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../css/themes/default/jquery.mobile-1.4.2.min.css">
<script src="../js/jquery.js"></script>
<script src="../js/jquery.mobile-1.4.2.min.js"></script>
<script>
$( document ).on( "pagecreate", function() {
$( "body > [data-role='panel']" ).panel();
$( "body > [data-role='panel'] [data-role='listview']" ).listview();
});
$( document ).one( "pageshow", function() {
$( "body > [data-role='header']" ).toolbar();
$( "body > [data-role='header'] [data-role='navbar']" ).navbar();
});
</script>
</head>
<body>
<div data-role="header" data-position="fixed" data-theme="a">
<h1>External header Page A</h1>
<a href="#outside" data-icon="bars" data-iconpos="notext">Menu</a>
<div data-role="navbar">
<ul>
<li><a href="index.html">Page A</a></li>
<li><a href="page-b.html">Page B</a></li>
<li><a href="page-c.html">Page C</a></li>
</ul>
</div>
</div><!-- /header -->
<div data-role="page" id="a">
<div role="main" class="ui-content">
<h2>Page A</h2>
<p>Content</p>
<p>The left panel and fixed header are outside the page. The right panel and fixed footer are inside the pages.</p>
<a href="#inside-a" class="ui-btn ui-shadow ui-corner-all ui-btn-inline">Open right panel</a>
</div><!-- /content -->
<div data-role="panel" id="inside-a" data-position="right" data-display="overlay" data-theme="b">
<ul data-role="listview">
<li data-icon="back"><a href="#" data-rel="close">Close</a></li>
<li>Internal panel</li>
<li>Page A</li>
<li>Overlay</li>
</ul>
</div>
<div data-role="footer" data-position="fixed">
<div data-role="navbar">
<ul>
<li><a href="index.html" class="ui-btn-active ui-state-persist">Page A</a></li>
<li><a href="page-b.html">Page B</a></li>
<li><a href="page-c.html">Page C</a></li>
</ul>
</div>
</div><!-- /header -->
</div><!-- /page -->
<div data-role="panel" id="outside" data-theme="b">
<ul data-role="listview">
<li data-icon="back"><a href="#" data-rel="close">Close</a></li>
<li>External panel</li>
<li>Page A</li>
<li>Reveal</li>
</ul>
</div>
</body>
</html>