-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.html
More file actions
47 lines (41 loc) · 1.24 KB
/
example.html
File metadata and controls
47 lines (41 loc) · 1.24 KB
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
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="../css/paginator.css">
</head>
<body>
<div id="pagination1" class="pagination"></div>
<div id="pagination2" class="pagination"></div>
<div>
<div id="list"> Any list</div>
<div class="pagination"></div>
</div>
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js" ></script>
<script type="text/javascript" src="../paginator.js"></script>
<script type="text/javascript">
$(document).ready(function() {
var cPaginator = new SPaginator(
null,
'#pagination1',
11,
function (page) { console.log("Call function to load " + page); },
{}
);
var cPaginator2 = new SPaginator(
null,
'#pagination2',
112,
function (page) { console.log("Call function to load " + page); },
{ items_per_page: 3 }
);
var cPaginator3 = new SPaginator(
null,
'#list + div.pagination',
1123,
function (page) { console.log("Call function to load " + page); },
{ display: 3 }
);
});
</script>
</body>
</html>