1import { Controller } from "@hotwired/stimulus"; 2 3export default class extends Controller { 4 search() { 5 const q = $(this.element).find("[name=\"q\"]").val() 6 7 $(this.element).find(".icon").addClass("d-none") 8 $(this.element).find(".icon-category").addClass("d-none"); 9 10 $(this.element).find(`.icon:contains(${q})`).removeClass("d-none") 11 .parents(".icon-category").removeClass("d-none"); 12 } 13};
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.