PageSourceSearch

https://survivalbrasil.org/assets/controllers/utils/radio_reveal_controller-1d42f776.js

js survivalbrasil.org collected 2026-10-03 21:39:40 UTC 468 bytes, 15 lines download raw bytes

1import { Controller } from "@hotwired/stimulus"
2
3// Connects to data-controller="utils--radio-reveal"
4// Shows the panel matching the checked radio's data-utils--radio-reveal-panel-param, hides the rest.
5export default class extends Controller {
6  static targets = ["panel"]
7
8  toggle(event) {
9    const shownPanel = event.params.panel
10
11    this.panelTargets.forEach((panel) => {
12      panel.classList.toggle("d-none", panel.dataset.panel !== shownPanel)
13    })
14  }
15}

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.