1import { Autocomplete } from "stimulus-autocomplete"; 2 3export default class InstructorAutocompleteController extends Autocomplete { 4 connect() { 5 super.connect(); 6 } 7 8 buildURL(query) { 9 const elementOfInstructors = document.querySelectorAll( 10 "[data-instructor-value]" 11 ); 12 const instructorIds = Array.from(elementOfInstructors).map( 13 (el) => el.value 14 ); 15 const url = `${new URL( 16 this.urlValue, 17 globalThis.location.href 18 ).toString()}?q=${query}&selected=${instructorIds.join(",")}`; 19 return url; 20 } 21}
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.