1class TagFilter extends HTMLSelectElement { 2 constructor() { 3 super(); 4 5 this.beforeInit(); 6 this.addEventListener('change', this.onChange); 7 } 8 9 beforeInit() { 10 const value = this.options[this.selectedIndex].text; 11 const width = theme.getElementWidth(this, value); 12 this.style.setProperty('--width', `${width}px`); 13 } 14 15 onChange() { 16 window.location.href = this.value; 17 } 18} 19 20customElements.define('tag-filter', TagFilter, { extends: 'select' });
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.