diff options
Diffstat (limited to 'index.ts')
| -rw-r--r-- | index.ts | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1 +1,7 @@ -console.log("Hello via Bun!");
\ No newline at end of file +const tags = document.querySelectorAll<HTMLElement>(".tag") + +tags?.forEach(t => { + t.addEventListener("click", _ => { + t.classList.toggle("active") + }) +}) |
