forked from wikiti/jquery-paginate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.html
53 lines (45 loc) · 963 Bytes
/
example.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
<!DOCTYPE html>
<html>
<head>
<title>jQuery paginate example</title>
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script src="jquery-paginate.js"></script>
<style>
.page-navigation a {
margin: 0 2px;
display: inline-block;
padding: 3px 5px;
color: #ffffff;
background-color: #70b7ec;
border-radius: 5px;
text-decoration: none;
font-weight: bold;
}
.page-navigation a[data-selected] {
background-color: #3d9be0;
}
</style>
</head>
<body>
<table id='myTable'>
<thead>
<tr>
<td>Index</td>
<td>Value</td>
</tr>
</thead>
<tbody>
</tbody>
</table>
<script>
// Add some examples to the page
for(var i = 0; i < 36; ++i)
$('#myTable > tbody').append('<tr><td>' + i + '</td><td>' + i.toString(16) + '</td></tr>');
// Paginate it
$('#myTable').paginate({
limit: 10,
initialPage: 2
});
</script>
</body>
</html>