1import './styles/legacy.css'; 2import './styles/code.css'; 3import './styles/color-palette.css'; 4 5window.addEventListener('DOMContentLoaded', () => { 6 new Legacy(); 7}); 8 9class Legacy { 10 constructor() { 11 this.#createDocVariantSelectors(); 12 } 13 14 #createDocVariantSelectors() { 15 const docVariantSelectors = document.querySelectorAll('.doc-variant-selector select'); 16 docVariantSelectors.forEach((docVariantSelector) => { 17 docVariantSelector.addEventListener('change', () => { 18 const selectedOption = docVariantSelector.options[docVariantSelector.selectedIndex]; 19 const selectedUrl = selectedOption.value; 20 if (null !== selectedUrl) { 21 window.location = selectedUrl; 22 } 23 }); 24 }); 25 } 26}
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.