aboutsummaryrefslogtreecommitdiff
path: root/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'index.ts')
-rw-r--r--index.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/index.ts b/index.ts
index f67b2c6..57e044c 100644
--- a/index.ts
+++ b/index.ts
@@ -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")
+ })
+})