add settings navbar

This commit is contained in:
Alex Turchyn committed 2023-06-01 00:01:13 +03:00
1 parent 1435d55727
commit 45adee6ddf
9 files changed
+219 -139

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
export default class extends HTMLElement {
connectedCallback () {
this.querySelectorAll('a').forEach((link) => {
if (document.location.pathname.startsWith(link.pathname)) {
link.classList.add('bg-base-300')
}
})
}
}