index : btroops | |
Virtual board game-aid for BattleTroops, an infantry combat simulator wargame published by FASA in 1989. |
aboutsummaryrefslogtreecommitdiff |
diff options
author | Catalin Mititiuc <webdevcat@proton.me> | 2024-04-22 14:28:29 -0700 |
---|---|---|
committer | Catalin Mititiuc <webdevcat@proton.me> | 2024-04-22 14:28:29 -0700 |
commit | 4dc47d6f045c01479d1298b933fd3e129d3d8279 (patch) | |
tree | f19a790d532abe9d15e677c0cbc0a4dafaee6e70 /src/index.js | |
parent | c23d9be9545d714d90a380197ba5e8411e73d6df (diff) |
Add grenade counter
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 2 |
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'); |