PageSourceSearch

https://www.chateluslemarcheix.fr/assets/controllers/service-form_…troller-76fb9ce2fbc17c9247c29a4737dc2cca.js

js chateluslemarcheix.fr collected 2026-10-02 22:09:46 UTC 1,067 bytes, 32 lines download raw bytes

1import { Controller } from '@hotwired/stimulus';
2
3export default class extends Controller {
4    static targets = ['radioType', 'color', 'picto'];
5
6    onRadioClick(event) {
7        const targetType = event.params.targetType;
8
9        switch (targetType) {
10            case 'type':
11                event.preventDefault();
12                this.radioTypeTargets.forEach(radio => {
13                    radio.checked = radio.id === event.params.input;
14                });
15                document.getElementById('form-service')?.submit();
16                break;
17            case 'color':
18                this.colorTargets.forEach(color => {
19                    color.classList.remove('checked-couleur');
20                });
21                event.target.classList.add('checked-couleur');
22                break;
23            case 'picto':
24                this.pictoTargets.forEach(picto => {
25                    picto.classList.remove('checked-picto');
26                });
27                event.target.classList.add('checked-picto');
28                break;
29        }
30
31    }
32}

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.