Skip to content

Commit 196a952

Browse files
000-793: stats not working
1 parent 222287a commit 196a952

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

_includes/header.html

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -58,35 +58,4 @@
5858
</div>
5959
</nav>
6060

61-
<script>
62-
function toggleDropdown(event) {
63-
event.preventDefault();
64-
65-
// Find the parent dropdown container
66-
const parentItem = event.target.closest('.has-dropdown');
67-
68-
// Toggle the active state
69-
if (parentItem.classList.contains('is-active')) {
70-
parentItem.classList.remove('is-active');
71-
} else {
72-
// Close all other dropdowns
73-
document.querySelectorAll('.navbar-item.has-dropdown.is-active').forEach(item => {
74-
item.classList.remove('is-active');
75-
});
76-
77-
// Open the clicked dropdown
78-
parentItem.classList.add('is-active');
79-
}
80-
}
81-
82-
// Close dropdowns when clicking outside
83-
document.addEventListener('click', function (event) {
84-
const target = event.target;
85-
if (!target.closest('.has-dropdown')) {
86-
document.querySelectorAll('.navbar-item.has-dropdown.is-active').forEach(item => {
87-
item.classList.remove('is-active');
88-
});
89-
}
90-
});
91-
</script>
9261

0 commit comments

Comments
 (0)