17 lines
706 B
JavaScript
17 lines
706 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
(() => {
|
|
const mapContainerElement = document.querySelector('#burialSite--cemeterySvg');
|
|
if (mapContainerElement !== null) {
|
|
exports.sunrise.highlightMap(mapContainerElement, mapContainerElement.dataset.cemeterySvgId ?? '', 'success');
|
|
}
|
|
document
|
|
.querySelector('#burialSite--contractsToggle')
|
|
?.addEventListener('click', () => {
|
|
const tableRowElements = document.querySelectorAll('#burialSite--contractsTbody tr[data-is-active="false"]');
|
|
for (const tableRowElement of tableRowElements) {
|
|
tableRowElement.classList.toggle('is-hidden');
|
|
}
|
|
});
|
|
})();
|