Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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)) {