index : btroops | |
Virtual board game-aid for BattleTroops, an infantry combat simulator wargame published by FASA in 1989. |
aboutsummaryrefslogtreecommitdiff |
diff options
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -354,4 +354,12 @@ document.querySelectorAll('.set-firing-arc').forEach(el => el.addEventListener(' document.querySelector('circle#point').style.display = 'none'; } } -}));
\ No newline at end of file +})); + +document.querySelectorAll('.clear-firing-arcs').forEach(el => + el.addEventListener('click', ({target: {dataset: {allegiance}}}) => + document + .querySelectorAll(`.firing-arc[data-troop-allegiance="${allegiance}"]`) + .forEach(el => el.remove()) + ) +);
\ No newline at end of file |