-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
53 lines (46 loc) · 1.76 KB
/
index.html
File metadata and controls
53 lines (46 loc) · 1.76 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SimplePaginate.js - Demo</title>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="./pagination.js"></script>
</head>
<body>
<div class="container mt-5">
<h2 class="text-center mb-4">SimplePaginate.js - Card Example</h2>
<div class="row">
<script>
for (let i = 1; i <= 30; i++) {
document.write(`
<div class="col-md-4 mb-4 js-pagination-item">
<div class="card">
<div class="card-body">
<h5 class="card-title">Item ${i}</h5>
<p class="card-text">This is the content of item ${i}.</p>
</div>
</div>
</div>
`);
}
</script>
</div>
<nav>
<ul class="pagination justify-content-center mt-4 js-pagination"></ul>
</nav>
</div>
<footer class="text-center mt-5">
<p>View the source code and usage instructions on GitHub:</p>
<a href="https://github.com/renangf4/SimplePaginate.js" target="_blank" class="btn btn-dark">
🔗 SimplePaginate.js Repository
</a>
</footer>
<script>
$(document).ready(function() {
generatePagination('.js-pagination', '.js-pagination-item', 6, 'Previous', 'Next');
});
</script>
</body>
</html>