1import { Controller } from '@hotwired/stimulus'; 2 3export default class extends Controller { 4 static targets = ["divToReveal", "radio"]; 5 static values = { visibleClass: String }; 6 7 connect() { 8 const showDiv = this.radioTargets.filter(e => e.checked && e.value === "yes").length > 0; 9 this.divToRevealTarget.classList.toggle(this.visibleClassValue, !showDiv); 10 } 11 12 toggleVisibility(event) { 13 const showDiv = event.currentTarget.value === "yes"; 14 this.divToRevealTarget.classList.toggle(this.visibleClassValue, !showDiv); 15 } 16}
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.