0
0
mirror of https://github.com/Doodle3D/doodle3d-connect.git synced 2024-12-25 18:13:48 +01:00
doodle3d-connect/js/libs/jquery.mobile/demos/panel-external-internal/page-c.html
peteruithoven f247f1b3dc Added jQuery and jQuery mobile
Needed for offline development
2014-04-24 12:13:53 +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="panel" id="outside" data-display="push" 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 C</li>
<li>Push</li>
</ul>
</div>
<div data-role="header" data-position="fixed" data-theme="a">
<h1>External header Page C</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="c">
<div data-role="panel" id="inside-c" data-position="right" 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 C</li>
<li>Reveal</li>
</ul>
</div>
<div role="main" class="ui-content">
<h2>Page C</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-c" class="ui-btn ui-shadow ui-corner-all ui-btn-inline">Open right panel</a>
</div><!-- /content -->
<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">Page B</a></li>
<li><a href="page-c.html" class="ui-btn-active ui-state-persist">Page C</a></li>
</ul>
</div>
</div><!-- /header -->
</div><!-- /page -->
</body>
</html>