Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-04-24 10:11:18 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-04-24 10:11:18 -0700
commit3d2d5cad852a8dc5bd8f4f619b85775a3d1a09f6 (patch)
tree8c62236025c5eae7b054ced160a07cd02e720d8f /src/modules/counter.js
parent96e6f8a09afaf7bc729b7e14eb0d72dd372ca9fd (diff)
WIP: hover over counter reveals firing arc working again
Diffstat (limited to 'src/modules/counter.js')
-rw-r--r--src/modules/counter.js46
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)) {