Download script.js from Limits/limitless-protectools-hub: direct link, hf CLI and curl.
- Browser
- Download file 793 Bytes
-
https://huggingface.co/spaces/Limits/limitless-protectools-hub/resolve/main/script.js
- Command line
-
hf download hf://spaces/Limits/limitless-protectools-hub/script.js
-
curl -L -o script.js https://huggingface.co/spaces/Limits/limitless-protectools-hub/resolve/main/script.js
793 Bytes
| // 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 | |
| } |