feat(tag): collaspable

This commit is contained in:
Anhgelus Morhtuuzh 2024-11-12 17:34:26 +01:00
parent 64c8ae31ff
commit bb5feb14b9
No known key found for this signature in database
GPG key ID: CAD341EFA92DDDE5
4 changed files with 40 additions and 3 deletions

View file

@ -1 +1,7 @@
console.log("Hello via Bun!");
const tags = document.querySelectorAll<HTMLElement>(".tag")
tags?.forEach(t => {
t.addEventListener("click", _ => {
t.classList.toggle("active")
})
})