-
+
diff --git a/src/index.js b/src/index.js
index 2ab35fa..98a3c1b 100644
--- a/src/index.js
+++ b/src/index.js
@@ -255,6 +255,20 @@ document.querySelector('#toggle-grid-vis input').addEventListener('change', func
svg.querySelector('#dots').style.display = this.checked ? 'inline' : 'none';
});
+document.querySelectorAll('#record-sheet [data-allegiance]').forEach(el => {
+ const squadNumbers = el.querySelectorAll(`.squad-number`);
+ const recordContainer = el.querySelector('.records');
+
+ squadNumbers.forEach(sn =>
+ sn.addEventListener('click', function() {
+ recordContainer.dataset.viewSquadNumber = this.dataset.number;
+ squadNumbers.forEach(sn =>
+ sn.classList[sn.dataset.number === this.dataset.number ? 'add' : 'remove']('selected')
+ );
+ })
+ );
+});
+
contentVisToggleEl.addEventListener('input', toggleContentVis);
contentVisToggleEl.checked = (localStorage.getItem('content-visibility') !== 'false');
toggleContentVis();
--
cgit v1.2.3
-
- - Attacker -
+
-
- Defender
-
+
+
Defender
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+