This commit is contained in:
Pete Matsyburka committed 2025-09-24 12:14:18 +03:00
1 parent f4426a8ee0
commit b64a84a362
51 files changed
+725 -147

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
export default class extends HTMLElement {
connectedCallback () {
this.selector = document.getElementById(this.dataset.selectorId)
this.addEventListener('click', () => {
this.selector.scrollIntoView({ behavior: 'smooth', block: 'start' })
history.replaceState(null, null, `#${this.dataset.selectorId}`)
})
}
}