id/scripts/settings_list_assister.js

8 lines
283 B
JavaScript
Raw Permalink Normal View History

2024-07-27 13:07:27 +01:00
const linksOfCurrentPage = document.querySelectorAll('a[href="'+window.location.pathname+'"]');
console.log(window.location.pathname)
for (let i = 0; i < linksOfCurrentPage.length; i++) {
console.log(linksOfCurrentPage[i])
linksOfCurrentPage[i].classList.add('selected');
}