Download script.js from Demoomberg/edupower-congo-syndicate: direct link, hf CLI and curl.
- Browser
- Download file 874 Bytes
-
https://huggingface.co/spaces/Demoomberg/edupower-congo-syndicate/resolve/main/script.js
- Command line
-
hf download hf://spaces/Demoomberg/edupower-congo-syndicate/script.js
-
curl -L -o script.js https://huggingface.co/spaces/Demoomberg/edupower-congo-syndicate/resolve/main/script.js
874 Bytes
| // Main script file for shared functionality | |
| document.addEventListener('DOMContentLoaded', function() { | |
| // Initialize any shared functionality here | |
| // Mobile menu toggle functionality will be handled by the header component | |
| // Smooth scrolling for anchor links | |
| document.querySelectorAll('a[href^="#"]').forEach(anchor => { | |
| anchor.addEventListener('click', function (e) { | |
| e.preventDefault(); | |
| const targetId = this.getAttribute('href'); | |
| if (targetId === '#') return; | |
| const targetElement = document.querySelector(targetId); | |
| if (targetElement) { | |
| targetElement.scrollIntoView({ | |
| behavior: 'smooth' | |
| }); | |
| } | |
| }); | |
| }); | |
| // Initialize any other shared components or functionality | |
| }); |