From b91d196a3790ef2f2b3e0fe6aab293a9f9e50166 Mon Sep 17 00:00:00 2001 From: Christoph Hagen Date: Sun, 15 Jan 2023 14:01:23 +0100 Subject: [PATCH] Extract grid cap count to own file --- Public/count.js | 1 + Public/grid.html | 1 + Public/grid.js | 1 - 3 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 Public/count.js diff --git a/Public/count.js b/Public/count.js new file mode 100644 index 0000000..c178f9a --- /dev/null +++ b/Public/count.js @@ -0,0 +1 @@ +const numberOfCaps = 1875; diff --git a/Public/grid.html b/Public/grid.html index 8df8034..de718bb 100644 --- a/Public/grid.html +++ b/Public/grid.html @@ -30,5 +30,6 @@
+ diff --git a/Public/grid.js b/Public/grid.js index 7a6c903..f48ffeb 100644 --- a/Public/grid.js +++ b/Public/grid.js @@ -1,7 +1,6 @@ const capImageSize = 50; const halfCapImageSize = capImageSize / 2; -const numberOfCaps = 1875; const numberOfColumns = 40; const numberOfRows = Math.ceil(numberOfCaps / numberOfColumns);