PageSourceSearch

https://dashboard.cmutrecht.nl/assets/controllers/map_sector_controller-bb3b38174936e23644fbd41b1e66a038.js

js cmutrecht.nl collected 2026-10-08 23:35:07 UTC 795 bytes, 25 lines download raw bytes

1import { Controller } from '@hotwired/stimulus';
2
3export default class extends Controller {
4    static targets = ['sector'];
5
6    connect() {
7        document.addEventListener('htmx:afterSwap', (e) => {
8            const elt = e.detail.elt;
9
10            if (elt.id === 'footfall_map') {
11                const sector = elt.dataset.sector;
12
13                this.sectorTargets.forEach((element) => {
14                    element.setAttribute('aria-expanded', false);
15                    element.removeAttribute('hx-disable');
16
17                    if (element.dataset.sector === sector) {
18                        element.setAttribute('aria-expanded', true);
19                        element.setAttribute('hx-disable', true);
20                    }
21                });
22            }
23        });
24    }
25}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.