1import {SearchControlBinding} from 'sites/search_control' 2 3class PostSearchControlBinding { 4 static bind() { 5 SearchControlBinding.setupEasyAutocomplete({ 6 cssIdentifier: '.post-search-control', 7 list: {maxNumberOfElements: 16}, 8 listItemTemplate: (value, item, index) => `<a href="${item.url}"><span id="${SearchControlBinding.cssIdFromItem(item, index)}" class="autocomplete-value">${value}</span></a>` 9 }) 10 } 11} 12 13document.addEventListener('clinch:document_ready', () => PostSearchControlBinding.bind())
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.