From 6f154234b34d13ae8ee527346928334f9cc76653 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Marchal?= Date: Sun, 14 Feb 2021 12:24:53 +0100 Subject: [PATCH] Pagination on all pages --- explorer.html | 8 +++- scripts/explorer.js | 98 ++++++++++++++++++++++++++++++++++++++++--- scripts/exposition.js | 2 +- 3 files changed, 101 insertions(+), 7 deletions(-) diff --git a/explorer.html b/explorer.html index 67351e7..38f30fe 100644 --- a/explorer.html +++ b/explorer.html @@ -14,6 +14,9 @@ + + + @@ -192,7 +195,10 @@ galerie liste - + diff --git a/scripts/explorer.js b/scripts/explorer.js index f58a27d..47f4311 100644 --- a/scripts/explorer.js +++ b/scripts/explorer.js @@ -390,10 +390,15 @@ jQuery(document).ready(function($) return false; } + // gallery vars + var pageSize = 14; + var paintingList = []; + function generateTable() { hasResult = false; numberOfItem = 0; + canDisplay = true; for (i of data) { @@ -457,7 +462,15 @@ jQuery(document).ready(function($) $("table").append(result); // gallery - paintingHtml = '