From bf60722e2210048a40a48fd2a962faae14de1108 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Marchal?= Date: Wed, 17 Feb 2021 18:48:52 +0100 Subject: [PATCH] First test of separation of javascript --- scripts/explorer.js | 142 +++++------------------------------------- scripts/exposition.js | 117 ++++------------------------------ scripts/fancybox.js | 68 ++++++++++++++++++++ scripts/pagination.js | 62 ++++++++++++++++++ 4 files changed, 159 insertions(+), 230 deletions(-) create mode 100644 scripts/fancybox.js create mode 100644 scripts/pagination.js diff --git a/scripts/explorer.js b/scripts/explorer.js index 825b9c4..d6ff210 100644 --- a/scripts/explorer.js +++ b/scripts/explorer.js @@ -391,8 +391,8 @@ jQuery(document).ready(function($) } // gallery vars - var pageSize = 14; - var paintingList = []; + window.pageSize = 14; + window.paintingList = []; function generateTable() { @@ -469,8 +469,9 @@ jQuery(document).ready(function($) paintingHtml = '