PageSourceSearch

https://trixbrix.eu/assets/controllers/option_group_controller-418e4876.js

js trixbrix.eu collected 2026-10-03 19:50:28 UTC 439 bytes, 21 lines download raw bytes

1import { Controller } from "@hotwired/stimulus"
2
3export default class extends Controller {
4  static targets = ["select", "group"]
5
6  connect() {
7    this.showGroup()
8  }
9
10  showGroup() {
11    const selectedId = this.selectTarget.value
12
13    this.groupTargets.forEach((group) => {
14      if (group.dataset.groupId === selectedId) {
15        group.style.display = "block"
16      } else {
17        group.style.display = "none"
18      }
19    })
20  }
21}

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.