PageSourceSearch

https://tribee.fr/assets/front/controllers/faq-controller-AqB-wXx.js

js tribee.fr collected 2026-09-24 10:43:06 UTC 610 bytes, 26 lines download raw bytes

1import { Controller } from '@hotwired/stimulus'
2
3export class FaqController extends Controller {
4  static targets = ['item']
5
6  click({target}) {
7    let selectedItem = target.parentNode;
8    let isAlreadySelected = selectedItem.hasAttribute('selected');
9    if (isAlreadySelected) {
10      this.close(selectedItem);
11    } else {
12      this.open(selectedItem);
13    }
14  }
15
16  open(selectedItem) {
17    this.itemTargets.forEach((item) => {
18      item.removeAttribute('selected');
19    })
20    selectedItem.setAttribute('selected', '');
21  }
22
23  close(selectedItem) {
24    selectedItem.removeAttribute('selected');
25  }
26}

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.