Extract grid cap count to own file

This commit is contained in:
Christoph Hagen 2023-01-15 14:01:23 +01:00
parent d516c1acd6
commit b91d196a37
3 changed files with 2 additions and 1 deletions

1
Public/count.js Normal file
View File

@ -0,0 +1 @@
const numberOfCaps = 1875;

View File

@ -30,5 +30,6 @@
<div id="selected-cap-circle"></div>
</div>
</body>
<script src="count.js"></script>
<script src="grid.js?v=2"></script>
</html>

View File

@ -1,7 +1,6 @@
const capImageSize = 50;
const halfCapImageSize = capImageSize / 2;
const numberOfCaps = 1875;
const numberOfColumns = 40;
const numberOfRows = Math.ceil(numberOfCaps / numberOfColumns);