forked from botmonster/jquery-bootpag
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
64 lines (58 loc) · 2.28 KB
/
index.html
File metadata and controls
64 lines (58 loc) · 2.28 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.1.1/js/bootstrap.min.js"></script>
<script type="text/javascript" src="lib/jquery.bootpag.min.js"></script>
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.1.1/css/bootstrap-combined.min.css" rel="stylesheet">
<title>BootPag - boostrap dynamic pagination jQuery plugin</title>
<style type="text/css">
p{
text-align: center;
}
</style>
</head>
<body>
<a href="https://github.com/botmonster/jquery-bootpag"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png" alt="Fork me on GitHub"></a>
<h1>Hello, this is bootpag - dynamic pagination jQuery plugin</h1>
<p>For more information see <a href="http://botmonster.github.com/jquery-bootpag/">projet homepage</a></p>
<h2>Demo 1</h2>
<p class="page1">No page selected</p>
<p class="demo1"></p>
<h2>Demo 2</h2>
<p class="page2">No page selected</p>
<p class="demo2"></p>
<h2>Demo 3</h2>
<p class="page3">No page selected</p>
<p class="demo3"></p>
<script type="text/javascript">
$('.demo1').bootpag({
total: 15
}).on("page", function(event, num){
$(".page1").html("Page " + num);
});
$('.demo2').bootpag({
total: 23,
page: 14,
maxVisible: 10,
}).on('page', function(event, num){
$(".page2").html("Page " + num);
});
$('.demo3').bootpag({
total: 9,
page: 14,
maxVisible: 7,
href: '#page-{{number}}',
leaps: false,
prev: 'lower',
next: 'higher'
}).on('page', function(event, num){
$(".page3").html("Page " + num);
});
$('.demo3').bootpag({
total: 3,
page: 2
});
</script>
<footer>(c) 2013 botmonster.com</footer>
</body>
</html>