Browse Source

adjust pagination display slider

master
JoBCB 3 years ago
parent
commit
3a9c117c2d
  1. 8
      templates/browsethearchive.html

8
templates/browsethearchive.html

@ -47,11 +47,12 @@
<script type="text/javascript">
//Pagination https://www.javaer101.com/en/article/123201810.html
pageSize = 4;
pageSize = 24;
incremSlide = 5;
startPage = 0;
numberPage = 0;
var pageCount = $(".browsethearchive-items").length / pageSize;
var totalSlidepPage = Math.floor(pageCount / incremSlide);
@ -99,10 +100,10 @@ slide = function(sens){
next.show();
prev.show();
}
}
slide();
showPage = function(page) {
$(".browsethearchive-items").hide();
$(".browsethearchive-items").each(function(n) {
@ -142,6 +143,7 @@ $(".prev").click(function() {
showPage(--i);
}
});
$(".next").click(function() {
let nextLi = $("#pagin li a.current").parent().next().find("a");

Loading…
Cancel
Save