WIP: toggle grid line vis
This commit is contained in:
@@ -277,6 +277,12 @@ document.querySelector('#toggle-grid-vis').addEventListener('change', function (
|
||||
svg.querySelector('#dots').style.display = this.checked ? 'inline' : 'none';
|
||||
});
|
||||
|
||||
document.querySelector('#toggle-grid-line-vis').addEventListener('change', function () {
|
||||
const doc = document.querySelector('object').contentDocument;
|
||||
const currentOp = parseFloat(doc.styleSheets[1].cssRules[4].style.opacity);
|
||||
doc.styleSheets[1].cssRules[4].style.opacity = currentOp > 0 ? 0 : 0.5;
|
||||
});
|
||||
|
||||
document.querySelectorAll('.view-squad').forEach(b => b.addEventListener('click', e => {
|
||||
const currentSquad = b.closest('.records-header').querySelector('.squad-number text');
|
||||
const currentSquadContainer = b.closest('[id$="-record"]').querySelector(`.records > .squad-${currentSquad.textContent}`);
|
||||
|
||||
Reference in New Issue
Block a user