{
"event": "PreToolUse",
"tool_name": "Read",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/public\/js\/components\/data-table.js"
}
}
{
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/public\/js\/app.js",
"content": "\/**\n * Campus App - Vanilla JS\n *\/\ndocument.addEventListener(\"DOMContentLoaded\", function () {\n \/\/ Mobile Navigation Toggle\n const navToggle = document.querySelector(\".nav-toggle\");\n const navItems = document.querySelector(\".nav-items\");\n\n if (navToggle && navItems) {\n navToggle.addEventListener(\"click\", function () {\n const isOpen = navItems.classList.toggle(\"open\");\n navToggle.setAttribute(\"aria-expanded\", isOpen);\n });\n\n \/\/ Dropdown toggle for mobile (click instead of hover)\n const dropdownBtns = document.querySelectorAll(\".nav-dropdown-btn\");\n dropdownBtns.forEach(function (btn) {\n btn.addEventListener(\"click\", function (e) {\n if (window.innerWidth <= 768) {\n e.preventDefault();\n const dropdown = btn.parentElement;\n dropdown.classList.toggle(\"active\");\n }\n });\n });\n\n \/\/ Close dropdowns when clicking outside\n document.addEventListener(\"click\", function (e) {\n if (!e.target.closest(\".nav-dropdown\") && !e.target.closest(\".nav-toggle\")) {\n document.querySelectorAll(\".nav-dropdown.active\").forEach(function (d) {\n d.classList.remove(\"active\");\n });\n }\n });\n }\n});\n",
"numLines": 37,
"startLine": 1,
"totalLines": 37
}
}
}