forked from arschmitz/jquery-mobile-nestedlists
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
126 lines (126 loc) · 3.12 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<!DOCTYPE html>
<html>
<head>
<title>JQM latest - issue template</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="//code.jquery.com/mobile/git/jquery.mobile-git.css">
<script src="//code.jquery.com/jquery-1.10.1.js"></script>
<script src="//code.jquery.com/mobile/git/jquery.mobile-git.js"></script>
<script src="jquery.mobile.nestedlists.js"></script>
<style>
#edit-with-js-bin { display: none !important; }
</style>
<script>
$( document ).on( "click", "#injectList", function(){
var list = "<ul><li>Item 1 i have a submenu" +
"<ul><li>submenuitem</li><li>submenuitem2</li></ul>" +
"<li>Item 2 i have no sub menu</li></ul>";
$( "#content" ).append( $( list ).listview({
childPages: true,
inset: true
}));
});
</script>
</head>
<body>
<div data-role="page">
<div data-role="header">
<h1>jQuery Mobile Nestedlists</h1>
</div><!-- /header -->
<div data-role="content" id="content">
<h3>Nestedlists is a plugin and that allows several styles of nested lists</h3>
<p>Some of these examples require a js plugin and some just a few css rules</p>
<p> plugin and css available at <a href="https://github.com/arschmitz/jquery-mobile-nestedlists/">https://github.com/arschmitz/jquery-mobile-nestedlists/</a>
</p>
<br>
<ul data-role="listview" data-child-pages="true">
<li data-role="list-divider" data-theme="b"><h1>Seperate Page Sublists</h1></li>
<li>
<a href="#acura"><h1>Acura</h1>
<p>Multi-page template no css and no js</p>
<p>You dont need this!!!</p>
</a>
</li>
<li data-role="list-divider"><h1>Nested list page generated from markup requires plugin</h1></li>
<li>
Infiniti
<ul >
<li>G37</li>
<li>Q50</li>
<li>M57</li>
<li>FX</li>
<li>EX</li>
</ul>
</li>
<li >
<h1>Audi</h1>
<ul>
<li>A6</li>
<li>S6</li>
<li>A7</li>
<li>S7</li>
<li>A8</li>
<li>S8</li>
</ul>
</li>
<li>
<h1>BMW</h1>
<ul >
<li>1 series</li>
<li>3 series</li>
<li>5 series</li>
<li>6 series</li>
<li>7 series</li>
</ul>
</li>
<li>
<h1>Cadillac</h1>
<ul >
<li>CTS</li>
<li>ATS</li>
<li>XTS</li>
</ul>
</li>
<li>
<h1>Lexus</h1>
<ul >
<li>IS</li>
<li>ES</li>
<li>GS</li>
<li>LS</li>
</ul>
</li>
<li>
<h1>Mercedes</h1>
<ul>
<li>A-Class</li>
<li>B-Class</li>
<li>C-Class</li>
<li>CL-Class</li>
<li>E-Class</li>
</ul>
</li>
</ul>
<br/><br/>
<button id="injectList">Add Dynamic List</button>
</div><!-- /content -->
</div><!-- /page -->
<div data-role="page" id="acura">
<div data-role="header">
<a href="#" data-rel="back">back</a>
<h1>Issue template</h1>
</div><!-- /header -->
<div data-role="content" id="content">
<ul data-role="listview">
<li>RLX</li>
<li>TL</li>
<li>TSX</li>
<li>ILX</li>
<li>ZDX</li>
<li>MDX</li>
</ul>
</div><!-- /content -->
</div><!-- /page -->
</body>
</html>