index : btroops | |
Virtual board game-aid for BattleTroops, an infantry combat simulator wargame published by FASA in 1989. |
aboutsummaryrefslogtreecommitdiff |
diff options
Diffstat (limited to 'src/modules/counter.js')
-rw-r--r-- | src/modules/counter.js | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/src/modules/counter.js b/src/modules/counter.js index 21a0238..3438566 100644 --- a/src/modules/counter.js +++ b/src/modules/counter.js @@ -61,29 +61,29 @@ export default class Counter { return pt; } - pointerOver(e) { - const { number: troopNumber, allegiance: troopAllegiance } = e.target.dataset, - cp = this.svg.querySelector(`#clip-path-${troopAllegiance}-${troopNumber}`); - - if (cp) { - cp.style.display = 'none'; - } - } - - pointerOut(e) { - let { number: troopNumber, allegiance: troopAllegiance } = e.target.dataset, - cp = this.svg.querySelector(`#clip-path-${troopAllegiance}-${troopNumber}`); - - if (cp) { - let isVisible = - document - .getElementById('toggle-firing-arc-vis') - .querySelector(`input[data-allegiance="${troopAllegiance}"]`) - .checked; - - cp.style.display = isVisible ? 'none' : ''; - } - } + // pointerOver(e) { + // const { number: troopNumber, allegiance: troopAllegiance } = e.target.dataset, + // cp = this.svg.querySelector(`#clip-path-${troopAllegiance}-${troopNumber}`); + + // if (cp) { + // cp.style.display = 'none'; + // } + // } + + // pointerOut(e) { + // let { number: troopNumber, allegiance: troopAllegiance } = e.target.dataset, + // cp = this.svg.querySelector(`#clip-path-${troopAllegiance}-${troopNumber}`); + + // if (cp) { + // let isVisible = + // document + // .getElementById('toggle-firing-arc-vis') + // .querySelector(`input[data-allegiance="${troopAllegiance}"]`) + // .checked; + + // cp.style.display = isVisible ? 'none' : ''; + // } + // } click(e) { if (e.target.classList.contains(selectedClass)) { |