Spaces:
Running
Running
Download script.js from Trimind/campusverse-chronicles: direct link, hf CLI and curl.
- Browser
- Download file 650 Bytes
-
https://huggingface.co/spaces/Trimind/campusverse-chronicles/resolve/main/script.js
- Command line
-
hf download hf://spaces/Trimind/campusverse-chronicles/script.js
-
curl -L -o script.js https://huggingface.co/spaces/Trimind/campusverse-chronicles/resolve/main/script.js
650 Bytes
| // Main JavaScript functionality | |
| document.addEventListener('DOMContentLoaded', function() { | |
| // Initialize Feather Icons | |
| feather.replace(); | |
| // 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(); | |
| document.querySelector(this.getAttribute('href')).scrollIntoView({ | |
| behavior: 'smooth' | |
| }); | |
| }); | |
| }); | |
| // You can add more global functionality here as needed | |
| }); |