Hello
I try to create 2 Panels, but I don't know what is the problem
can you help me
- <html lang="ar">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <title>panel demo</title>
- <link rel="stylesheet" href="//code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css">
- <script src="//code.jquery.com/jquery-1.9.1.min.js"></script>
- <script src="//code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script>
- <style>
- .panel-content {
- padding:15px;
- }
- </style>
- </head>
- <body>
-
- <div data-role="page" id="page1">
- <div data-role="header">
- <a href="#defaultpanel" data-role="button" data-inline="true" data-icon="bars">Left</a>
- <h1>jQuery Mobile Example</h1>
- <a href="#defaultpanel2" data-role="button" data-inline="true" data-icon="bars">Right</a>
- </div>
- <div data-role="content">
- test test test
- </div>
-
- <!-- defaultpanel -->
- <div data-role="panel2" id="mypanel" data-position="right" data-display="push">
- <h3>Default panel options</h3>
- <p>This panel has all the default options: positioned on the left with the reveal display mode. The panel markup is <em>before</em> the header, content and footer in the source order.</p>
- <p>To close, click off the panel, swipe left or right, hit the Esc key, or use the button below:</p>
- <a href="#demo-links" data-rel="close" data-role="button" data-theme="c" data-icon="delete" data-inline="true">Close panel</a>
- </div>
- <div data-role="panel" id="defaultpanel2" data-theme="b">
-
- <div class="panel-content">
- <h3>Default panel options</h3>
- <p>This panel has all the default options: positioned on the left with the reveal display mode. The panel markup is <em>before</em> the header, content and footer in the source order.</p>
- <p>To close, click off the panel, swipe left or right, hit the Esc key, or use the button below:</p>
- <a href="#demo-links" data-rel="close" data-role="button" data-theme="c" data-icon="delete" data-inline="true">Close panel</a>
- </div><!-- /content wrapper for padding -->
- </div><!-- /defaultpanel -->
- </div>
-
- </body>
- </html>