1class LinkDropdown extends HTMLElement { 2 constructor() { 3 super(); 4 5 this.select = this.querySelector('#filter-by'); 6 this.blogUrl = this.select.dataset.blogUrl; 7 8 this.select.addEventListener('change', this.onSelectChange.bind(this)); 9 } 10 11 onSelectChange() { 12 if (this.select.value.length > 0) { 13 window.location.href = this.blogUrl + '/tagged/' + encodeURIComponent(this.select.value); 14 } 15 else window.location.href = this.blogUrl; 16 } 17} 18 19customElements.define("link-dropdown", LinkDropdown);
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.