Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit f28140f

Browse files
Demos: Added panels test pages
1 parent af7af31 commit f28140f

File tree

3 files changed

+197
-0
lines changed

3 files changed

+197
-0
lines changed

demos/test/panels/index.html

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>External panels</title>
5+
<meta charset="utf-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<link rel="stylesheet" href="http://192.168.1.33/jqm/src/css/themes/default/jquery.mobile.css" />
8+
<script src="http://code.jquery.com/jquery-1.10.1.js"></script>
9+
<script src="http://192.168.1.33/jqm/src/js/"></script>
10+
<script>
11+
$( document ).on( "pagecreate", function() {
12+
$( "body > [data-role='panel']" ).panel();
13+
$( "#outside [data-role='listview']" ).listview();
14+
});
15+
</script>
16+
</head>
17+
<body>
18+
<div data-role="page" id="a">
19+
20+
<div data-role="header" data-position="fixed">
21+
<h1>Header</h1>
22+
<a href="#outside" data-icon="bars" data-iconpos="notext">Menu</a>
23+
<a href="#inside-a" data-icon="bars" data-iconpos="notext">Menu</a>
24+
<div data-role="navbar">
25+
<ul>
26+
<li><a href="index.html" class="ui-btn-active ui-state-persist">Page A</a></li>
27+
<li><a href="page-b.html">Page B</a></li>
28+
<li><a href="page-c.html">Page C</a></li>
29+
</ul>
30+
</div>
31+
</div><!-- /header -->
32+
33+
<div data-role="content">
34+
35+
<h2>Page A</h2>
36+
37+
<p>Content</p>
38+
39+
</div><!-- /content -->
40+
41+
<div data-role="panel" id="inside-a" data-position="right" data-display="overlay" data-theme="b">
42+
<ul data-role="listview">
43+
<li data-icon="left"><a href="#" data-rel="close">Close</a></li>
44+
<li>List item</li>
45+
<li>List item</li>
46+
</ul>
47+
</div>
48+
49+
<div data-role="footer" data-position="fixed">
50+
<h4>Footer</h4>
51+
</div><!-- /header -->
52+
53+
</div><!-- /page -->
54+
55+
<div data-role="panel" id="outside" data-theme="c">
56+
<ul data-role="listview">
57+
<li data-icon="left"><a href="#" data-rel="close">Close</a></li>
58+
<li>List item</li>
59+
<li>List item</li>
60+
</ul>
61+
<p>sibling page A</p>
62+
</div>
63+
64+
</body>
65+
</html>

demos/test/panels/page-b.html

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>External panels</title>
5+
<meta charset="utf-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<link rel="stylesheet" href="http://192.168.1.33/jqm/src/css/themes/default/jquery.mobile.css" />
8+
<script src="http://code.jquery.com/jquery-1.10.1.js"></script>
9+
<script src="http://192.168.1.33/jqm/src/js/"></script>
10+
<script>
11+
$( document ).on( "pagecreate", function() {
12+
$( "body > [data-role='panel']" ).panel();
13+
$( "#outside [data-role='listview']" ).listview();
14+
});
15+
</script>
16+
</head>
17+
<body>
18+
19+
<div data-role="page" id="b">
20+
21+
<div data-role="header" data-position="fixed">
22+
<h1>Header</h1>
23+
<a href="#outside" data-icon="bars" data-iconpos="notext">Menu</a>
24+
<a href="#inside-b" data-icon="bars" data-iconpos="notext">Menu</a>
25+
<div data-role="navbar">
26+
<ul>
27+
<li><a href="./">Page A</a></li>
28+
<li><a href="page-b.html" class="ui-btn-active ui-state-persist">Page B</a></li>
29+
<li><a href="page-c.html">Page C</a></li>
30+
</ul>
31+
</div>
32+
</div><!-- /header -->
33+
34+
<div data-role="content">
35+
36+
<h2>Page B</h2>
37+
38+
<p>Content</p>
39+
40+
</div><!-- /content -->
41+
42+
<div data-role="panel" id="inside-b" data-position="right" data-display="push" data-theme="b">
43+
<ul data-role="listview">
44+
<li data-icon="left"><a href="#" data-rel="close">Close</a></li>
45+
<li>List item</li>
46+
<li>List item</li>
47+
</ul>
48+
</div>
49+
50+
<div data-role="footer" data-position="fixed">
51+
<h4>Footer</h4>
52+
</div><!-- /header -->
53+
54+
</div><!-- /page -->
55+
56+
<div data-role="panel" id="outside" data-display="overlay" data-theme="c">
57+
<ul data-role="listview">
58+
<li data-icon="left"><a href="#" data-rel="close">Close</a></li>
59+
<li>List item</li>
60+
<li>List item</li>
61+
</ul>
62+
<p>sibling page B</p>
63+
</div>
64+
65+
</body>
66+
</html>

demos/test/panels/page-c.html

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>External panels</title>
5+
<meta charset="utf-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<link rel="stylesheet" href="http://192.168.1.33/jqm/src/css/themes/default/jquery.mobile.css" />
8+
<script src="http://code.jquery.com/jquery-1.10.1.js"></script>
9+
<script src="http://192.168.1.33/jqm/src/js/"></script>
10+
<script>
11+
$( document ).on( "pagecreate", function() {
12+
$( "body > [data-role='panel']" ).panel();
13+
$( "#outside [data-role='listview']" ).listview();
14+
});
15+
</script>
16+
</head>
17+
<body>
18+
19+
<div data-role="panel" id="outside" data-display="push" data-theme="c">
20+
<ul data-role="listview">
21+
<li data-icon="left"><a href="#" data-rel="close">Close</a></li>
22+
<li>List item</li>
23+
<li>List item</li>
24+
</ul>
25+
<p>sibling page C</p>
26+
</div>
27+
28+
<div data-role="page" id="c">
29+
30+
<div data-role="panel" id="inside-c" data-position="right" data-theme="b">
31+
<ul data-role="listview">
32+
<li data-icon="left"><a href="#" data-rel="close">Close</a></li>
33+
<li>List item</li>
34+
<li>List item</li>
35+
</ul>
36+
</div>
37+
38+
<div data-role="header" data-position="fixed">
39+
<h1>Header</h1>
40+
<a href="#outside" data-icon="bars" data-iconpos="notext">Menu</a>
41+
<a href="#inside-c" data-icon="bars" data-iconpos="notext">Menu</a>
42+
<div data-role="navbar">
43+
<ul>
44+
<li><a href="./">Page A</a></li>
45+
<li><a href="page-b.html">Page B</a></li>
46+
<li><a href="page-c.html" class="ui-btn-active ui-state-persists">Page C</a></li>
47+
</ul>
48+
</div>
49+
</div><!-- /header -->
50+
51+
<div data-role="content">
52+
53+
<h2>Page C</h2>
54+
55+
<p>Content</p>
56+
57+
</div><!-- /content -->
58+
59+
<div data-role="footer" data-position="fixed">
60+
<h4>Footer</h4>
61+
</div><!-- /header -->
62+
63+
</div><!-- /page -->
64+
65+
</body>
66+
</html>

0 commit comments

Comments
 (0)