1import { Controller } from "@hotwired/stimulus"; 2 3// Connects to data-controller="image-title-copy-mobile-collapse" 4export default class extends Controller { 5 static targets = ["toggle", "img_wrapper"]; 6 // check if toggle has aria-expanded="true", img_wrapper should get a class "expanded" 7 connect() { 8 this.update(); 9 } 10 11 update() { 12 if (this.toggleTarget.getAttribute("aria-expanded") === "true") { 13 this.img_wrapperTarget.classList.add("expanded"); 14 } else { 15 this.img_wrapperTarget.classList.remove("expanded"); 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.