forked from sdeering/jquery-quick-pagination
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
189 lines (151 loc) · 5.15 KB
/
index.php
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="keywords" content="jQuery pagination demo" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script type="text/javascript" src="../script.js"></script>
<script type="text/javascript" src="http://www.jquery4u.com/demos/jquery-quick-pagination/js/jquery.quick.pagination.min.js"></script>
<link rel="stylesheet" type="text/css" href="../styles.css">
<link rel="stylesheet" type="text/css" href="css/styles.css">
<script type="text/javascript">
$(document).ready(function() {
$("ul.pagination1").quickPagination();
$("ul.pagination2").quickPagination({pagerLocation:"both"});
$("ul.pagination3").quickPagination({pagerLocation:"both",pageSize:"3"});
});
</script>
<style type="text/css">
#content { background-color:white; }
</style>
<title>jQuery Quick Pagination Demo | jQuery4u</title>
</head>
<body onload="init()" >
<div id="page-wrap">
<?php include("../header.php"); ?>
<div id="content">
<h1>jQuery Quick Pagination Demo</h1>
<p>Use jQuery to convert long lists and page content into numbered pages in seconds! <strong><a href="http://www.jquery4u.com/demos/jquery-quick-pagination/js/jquery.quick.pagination.min.js">jquery.quick.pagination.js</a></strong> plugin is very lightweight, only 3kb! And I've tested in on every browser and it is very stable.</p>
<p>
<a class="seelivedemo" href="http://jquery4u.com/tutorials/jquery-quick-pagination/">Tutorial</a>
<a class="seelivedemo" href="https://github.com/sdeering/jquery-quick-pagination">Download</a>
</p>
<!-- plugin html -->
<h2>First example</h2>
<p>Default options 10 list items per page and page navigation at bottom.</p>
<code>
<pre>
$("ul.pagination1").quickPagination();
</pre>
</code>
<ul class="pagination1">
<li>1 - Item 1 of 25</li>
<li>2 - Item 2 of 25</li>
<li>3 - Item 3 of 25</li>
<li>4 - Item 4 of 25</li>
<li>5 - Item 5 of 25</li>
<li>6 - Item 6 of 25</li>
<li>7 - Item 7 of 25</li>
<li>8 - Item 8 of 25</li>
<li>9 - Item 9 of 25</li>
<li>10 - Item 10 of 25</li>
<li>11 - Item 11 of 25</li>
<li>12 - Item 12 of 25</li>
<li>13 - Item 13 of 25</li>
<li>14 - Item 14 of 25</li>
<li>15 - Item 15 of 25</li>
<li>16 - Item 16 of 25</li>
<li>17 - Item 17 of 25</li>
<li>18 - Item 18 of 25</li>
<li>19 - Item 19 of 25</li>
<li>20 - Item 20 of 25</li>
<li>21 - Item 21 of 25</li>
<li>22 - Item 22 of 25</li>
<li>23 - Item 23 of 25</li>
<li>24 - Item 24 of 25</li>
<li>25 - Item 25 of 25</li>
</ul>
<div class="clearing"></div>
<h2>Second example</h2>
<p>Default options 10 list items per page and page navigation at top and bottom.</p>
<code>
<pre>
$("ul.pagination2").quickPagination({pagerLocation:"both"});
</pre>
</code>
<ul class="pagination2">
<li>1 - Item 1 of 25</li>
<li>2 - Item 2 of 25</li>
<li>3 - Item 3 of 25</li>
<li>4 - Item 4 of 25</li>
<li>5 - Item 5 of 25</li>
<li>6 - Item 6 of 25</li>
<li>7 - Item 7 of 25</li>
<li>8 - Item 8 of 25</li>
<li>9 - Item 9 of 25</li>
<li>10 - Item 10 of 25</li>
<li>11 - Item 11 of 25</li>
<li>12 - Item 12 of 25</li>
<li>13 - Item 13 of 25</li>
<li>14 - Item 14 of 25</li>
<li>15 - Item 15 of 25</li>
<li>16 - Item 16 of 25</li>
<li>17 - Item 17 of 25</li>
<li>18 - Item 18 of 25</li>
<li>19 - Item 19 of 25</li>
<li>20 - Item 20 of 25</li>
<li>21 - Item 21 of 25</li>
<li>22 - Item 22 of 25</li>
<li>23 - Item 23 of 25</li>
<li>24 - Item 24 of 25</li>
<li>25 - Item 25 of 25</li>
</ul>
<div class="clearing"></div>
<h2>Third example</h2>
<p>Specified 3 list items per page and page navigation at top and bottom.</p>
<code>
<pre>
$("ul.pagination3").quickPagination({pagerLocation:"both",pageSize:"3"});
</pre>
</code>
<ul class="pagination3">
<li>1 - Item 1 of 25</li>
<li>2 - Item 2 of 25</li>
<li>3 - Item 3 of 25</li>
<li>4 - Item 4 of 25</li>
<li>5 - Item 5 of 25</li>
<li>6 - Item 6 of 25</li>
<li>7 - Item 7 of 25</li>
<li>8 - Item 8 of 25</li>
<li>9 - Item 9 of 25</li>
<li>10 - Item 10 of 25</li>
<li>11 - Item 11 of 25</li>
<li>12 - Item 12 of 25</li>
<li>13 - Item 13 of 25</li>
<li>14 - Item 14 of 25</li>
<li>15 - Item 15 of 25</li>
<li>16 - Item 16 of 25</li>
<li>17 - Item 17 of 25</li>
<li>18 - Item 18 of 25</li>
<li>19 - Item 19 of 25</li>
<li>20 - Item 20 of 25</li>
<li>21 - Item 21 of 25</li>
<li>22 - Item 22 of 25</li>
<li>23 - Item 23 of 25</li>
<li>24 - Item 24 of 25</li>
<li>25 - Item 25 of 25</li>
</ul>
<br/>
<div class="clearing"></div>
<!-- end plugin html -->
<br/>
<br/>
<p>
<a class="seelivedemo" href="http://jquery4u.com/tutorials/jquery-quick-pagination/">Tutorial</a>
<a class="seelivedemo" href="http://www.jquery4u.com/demos/jquery-quick-pagination/jquery-quick-pagination.zip">Download</a>
</p>
</div>
<!-- footer (includes analytics) -->
<?php include("../footer.php"); ?>
</div> <!-- end page wrap -->
</body>
</html>