Extract grid cap count to own file
This commit is contained in:
parent
d516c1acd6
commit
b91d196a37
1
Public/count.js
Normal file
1
Public/count.js
Normal file
@ -0,0 +1 @@
|
||||
const numberOfCaps = 1875;
|
@ -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>
|
||||
|
@ -1,7 +1,6 @@
|
||||
const capImageSize = 50;
|
||||
const halfCapImageSize = capImageSize / 2;
|
||||
|
||||
const numberOfCaps = 1875;
|
||||
const numberOfColumns = 40;
|
||||
|
||||
const numberOfRows = Math.ceil(numberOfCaps / numberOfColumns);
|
||||
|
Loading…
Reference in New Issue
Block a user