summaryrefslogtreecommitdiff
path: root/site/themes/tui/assets/js/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'site/themes/tui/assets/js/main.js')
-rw-r--r--site/themes/tui/assets/js/main.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/site/themes/tui/assets/js/main.js b/site/themes/tui/assets/js/main.js
new file mode 100644
index 0000000..9c65d22
--- /dev/null
+++ b/site/themes/tui/assets/js/main.js
@@ -0,0 +1,11 @@
+document.addEventListener("DOMContentLoaded", function () {
+ console.log("✅ main.js loaded");
+
+ const heading = document.querySelector("h1");
+ if (heading) {
+ heading.style.cursor = "pointer";
+ heading.addEventListener("click", () => {
+ alert("You clicked the heading!");
+ });
+ }
+});