diff --git a/templates/base.html b/templates/base.html index c148861..a1f5735 100644 --- a/templates/base.html +++ b/templates/base.html @@ -30,33 +30,42 @@ - Home - - Methodology - - Windows - Linux + + + Home + + Methodology + + Windows + Linux + - - - Investigate - - Threat Intel - IP - Domain - File Hash - Malware + + Investigate + + Threat Intel + IP + Domain + File Hash + Malware + + Rule Creation + + + + + {% if current_user.is_authenticated %} + Notebook + {{ current_user.username }} + {% else %} + Register + Login + {% endif %} - Rule Creation - - {% if current_user.is_authenticated %} - Notebook - {{ current_user.username }} - {% else %} - Login - {% endif %} + + @@ -107,6 +116,18 @@ } }); + const navLinks = document.querySelectorAll('.nav-links a'); + + navLinks.forEach(link => { + link.addEventListener('click', function() { + // Remove active class from all links + navLinks.forEach(link => link.classList.remove('active')); + + // Add active class to clicked link + this.classList.add('active'); + }); + }); + // Burger menu toggle function for mobile function toggleMenu() { const navLinks = document.querySelector('.nav-links');