id/scripts/settings_list_assister.js

8 lines
283 B
JavaScript
Raw Normal View History

2024-07-27 12:07:27 +00: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');
}