PageSourceSearch

https://www.commune-beinheim.fr/assets/controllers/form-annuaire-f…troller-d7898085f8fc6b91d9cc0fddf1df753f.js

js commune-beinheim.fr collected 2026-10-02 21:32:12 UTC 825 bytes, 34 lines download raw bytes

1import {Controller} from "@hotwired/stimulus";
2
3export default class extends Controller {
4    static targets = [ "themes" ];
5
6    themesTargetConnected(target) {
7        this.toogleClass(target);
8    }
9
10    reset(event) {
11        event.preventDefault()
12        this.themesTargets.forEach((checkbox) => {
13            // @ts-expect-error
14            checkbox.checked = false
15        });
16        this.element.requestSubmit();
17    }
18
19    toogleClass(target) {
20        let label = document.querySelector('label[for="'+target.id+'"]');
21
22        if (target.checked) {
23            label.classList.add('checked');
24        } else {
25            label.classList.remove('checked');
26        }
27    }
28
29    select(event) {
30        // event.preventDefault()
31        this.toogleClass(event.target);
32        this.element.requestSubmit();
33    }
34}

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.