feat(tag): style on hover
This commit is contained in:
parent
fce56f5088
commit
2621bc5978
6 changed files with 23 additions and 10 deletions
2
index.ts
2
index.ts
|
@ -1,7 +1,7 @@
|
|||
function setupEvents() {
|
||||
document.querySelectorAll<HTMLElement>(".tag")?.forEach(t => {
|
||||
t.addEventListener("click", _ => {
|
||||
t.classList.toggle("active")
|
||||
// t.classList.toggle("active")
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue