1/* Raw JS */ 2// Search fix 3const searchForms = [document.querySelector('#cdc-desktop-search-form'), document.querySelector('#cdc-mobile-search-form')]; 4searchForms.forEach(form => { 5 if (!form) { return } 6 form.action = 'https://search.cdc.gov/search/spanish/'; 7 if (form.querySelector('[type="search"]')) { 8 form.querySelector('[type="search"]').name = 'query'; 9 } 10}) 11// nav bar 12document.querySelectorAll('.navbar-collapse .nav-item > a.nav-link').forEach(a => a.href='#'); 13 14// hero carousel links 15document.querySelectorAll('#hero-carousel .carousel-item').forEach(slide => { 16 const link = slide.querySelector('a'); 17 if (link?.href) { 18 slide.addEventListener('click', () => window.location = link.href); 19 } 20}) 21/* End Raw JS */
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.