0
0
mirror of https://github.com/Doodle3D/doodle3d-connect.git synced 2024-12-30 20:23:48 +01:00
doodle3d-connect/js/libs/.jquery.mobile/demos/panel-external-internal/page-b.html

82 lines
2.3 KiB
HTML
Raw Normal View History

<!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 B</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="b">
<div role="main" class="ui-content">
<h2>Page B</h2>
<p>Content</p>
<p>The left panel and fixed header are outside the page. The right panel and fixed footer are inside the page.</p>
<a href="#inside-b" class="ui-btn ui-shadow ui-corner-all ui-btn-inline">Open right panel</a>
</div><!-- /content -->
<div data-role="panel" id="inside-b" data-position="right" data-display="push" 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 B</li>
<li>Push</li>
</ul>
</div>
<div data-role="footer" data-position="fixed">
<div data-role="navbar">
<ul>
<li><a href="index.html">Page A</a></li>
<li><a href="page-b.html" class="ui-btn-active ui-state-persist">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-display="overlay" 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 B</li>
<li>Overlay</li>
</ul>
</div>
</body>
</html>