This repository has been archived by the owner on May 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
pretty.html
61 lines (55 loc) · 2.43 KB
/
pretty.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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>jQuery Mobile Tiny Sort</title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.0/jquery.mobile-1.4.0.min.css" />
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.0/jquery.mobile-1.4.0.min.js"></script>
<script src="src/jquery.tinysort.min.js"></script>
<script src="src/jquery.jqmts.js"></script>
</head>
<body>
<div data-role="page">
<div data-role="header" data-position="inline">
<h1>jQuery Mobile Tiny Sort</h1>
<div data-role="navbar">
<ul>
<li><a href="index.html" data-ajax="false">Home</a></li>
<li><a href="simple.html" data-ajax="false">Simple</a></li>
<li><a href="pretty.html" class="ui-btn-active" data-ajax="false">Pretty</a></li>
<li><a href="long.html" data-ajax="false">Long</a></li>
</ul>
</div>
</div>
<div data-role="content">
<a href="https://github.com/commadelimited/jQuery-Mobile-Tiny-Sort" data-role="button" data-icon="star">Get the code</a>
<h2>Pretty Menu</h2>
<ul data-role="listview" data-inset="true" id="sortlist">
<li data-sort-firstname="alana" data-sort-lastname="Midgley">Alana Midgley</li>
<li data-sort-firstname="lonnie" data-sort-lastname="Wuest">Jaime Wuest</li>
<li data-sort-firstname="tania" data-sort-lastname="Maheu">Tania Maheu</li>
<li data-sort-firstname="benita" data-sort-lastname="Staudt">Benita Staudt</li>
<li data-sort-firstname="jaime" data-sort-lastname="Peat">Jaime Peat</li>
<li data-sort-firstname="clare" data-sort-lastname="Sellman">Clare Sellman</li>
<li data-sort-firstname="max" data-sort-lastname="Yuan">Max Yuan</li>
<li data-sort-firstname="andy" data-sort-lastname="Matthews">Andy Matthews</li>
<li data-sort-firstname="sofia" data-sort-lastname="Bernett">Sofia Bernett</li>
<li data-sort-firstname="lilia" data-sort-lastname="Sultan">Lilia Sultan</li>
<li data-sort-firstname="jaime" data-sort-lastname="matthews">Jaime Matthews</li>
<li data-sort-firstname="evan" data-sort-lastname="matthews">Evan Matthews</li>
</ul>
</div>
</div>
<script>
$(function(){
$('#sortlist').jqmts({
useNativeMenu: false,
showCounts: true,
attributes: {firstname: 'First Name', lastname: 'Last Name'}
});
});
</script>
</body>
</html>