feat(tag): collaspable
This commit is contained in:
parent
64c8ae31ff
commit
bb5feb14b9
4 changed files with 40 additions and 3 deletions
8
index.ts
8
index.ts
|
@ -1 +1,7 @@
|
|||
console.log("Hello via Bun!");
|
||||
const tags = document.querySelectorAll<HTMLElement>(".tag")
|
||||
|
||||
tags?.forEach(t => {
|
||||
t.addEventListener("click", _ => {
|
||||
t.classList.toggle("active")
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue