1document.addEventListener("alpine:init", () => { 2 Alpine.data("searchModal", () => ({ 3 init() { 4 this.$watch("open", (value) => { 5 if (value) { 6 this.$nextTick(() => { 7 this.$refs.searchField.focus(); 8 this.$refs.searchField.select(); 9 }); 10 } 11 }); 12 }, 13 })); 14 15 Alpine.data("docsDropdown", () => ({ 16 selectedEntry: "", 17 18 init() { 19 this.selectedEntry = this.$el.dataset.initialUrl; 20 this.$watch("selectedEntry", () => { 21 window.location.href = this.selectedEntry; 22 }); 23 }, 24 })); 25});
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.