File size: 793 Bytes
f734b8c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// 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
}