Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-04-22 14:28:29 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-04-22 14:28:29 -0700
commit4dc47d6f045c01479d1298b933fd3e129d3d8279 (patch)
treef19a790d532abe9d15e677c0cbc0a4dafaee6e70 /src/index.js
parentc23d9be9545d714d90a380197ba5e8411e73d6df (diff)
Add grenade counter
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/index.js b/src/index.js
index 617e953..63925b1 100644
--- a/src/index.js
+++ b/src/index.js
@@ -206,6 +206,8 @@ window.addEventListener('load', () => {
el.addEventListener('click', () => game.setFiringArc(el.dataset.size))
);
+ document.querySelector('.set-grenade').addEventListener('click', () => game.setGrenade());
+
recordSheetVisibility.addEventListener('input', e => {
let divs = document.querySelectorAll('#content div');