// Shared JavaScript functionality document.addEventListener('DOMContentLoaded', () => { // Apply animations to elements const animateElements = document.querySelectorAll('.animate-fade-in'); animateElements.forEach((el, index) => { el.style.opacity = 0; el.classList.add(`animate-delay-${(index % 3 + 1) * 100}`); }); // Initialize tooltips for feather icons const tooltipIcons = document.querySelectorAll('[data-feather][title]'); tooltipIcons.forEach(icon => { icon.setAttribute('data-tooltip', icon.getAttribute('title')); icon.removeAttribute('title'); }); }); // Function to handle tool loading function loadTool(toolId) { console.log(`Loading tool: ${toolId}`); // Implementation would be specific to each tool }