1import { Controller } from "@hotwired/stimulus"; 2 3export default class extends Controller { 4 static targets = ["description", "text"]; 5 6 connect() { 7 this.updateButtonText(); 8 } 9 10 toggle() { 11 this.descriptionTarget.classList.toggle("line-clamp-3"); 12 this.updateButtonText(); 13 } 14 15 updateButtonText() { 16 if (this.descriptionTarget.classList.contains("line-clamp-3")) { 17 this.textTarget.textContent = "Read More â"; 18 } else { 19 this.textTarget.textContent = "Read Less â"; 20 } 21 } 22};
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.