1document.addEventListener('DOMContentLoaded', function () { 2 document.querySelectorAll('.category-btn').forEach(button => { 3 button.addEventListener('click', function () { 4 const selectedCategory = this.getAttribute('data-category'); 5 const url = new URL(window.location.href); 6 7 if (selectedCategory === "") { 8 url.searchParams.delete('categorie'); 9 } else { 10 url.searchParams.set('categorie', selectedCategory); 11 } 12 url.searchParams.set('paged', 1); 13 if (!url.hash || url.hash !== '#news-list') { 14 url.hash = 'news-list'; 15 } 16 window.location.href = url.toString(); 17 }); 18 }); 19 20 window.addEventListener('load', function () { 21 if (window.location.hash === '#news-list') { 22 document.querySelector('#news-list').scrollIntoView({ 23 behavior: 'smooth', 24 block: 'start' 25 }); 26 } 27 }); 28});
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.