1import { 2 Controller 3} from "@hotwired/stimulus"; 4 5export default class extends Controller { 6 static targets = ["content", "label"]; 7 static values = { 8 show: String, 9 hide: String 10 }; 11 12 toggle() { 13 const hidden = this.contentTarget.classList.toggle("is-hidden"); 14 if (this.hasLabelTarget) { 15 this.labelTarget.textContent = hidden ? this.showValue : this.hideValue; 16 } 17 } 18}
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.