Download script.js from andi200/fantasy-gridiron-glory-tracker: direct link, hf CLI and curl.
- Browser
- Download file 659 Bytes
-
https://huggingface.co/spaces/andi200/fantasy-gridiron-glory-tracker/resolve/main/script.js
- Command line
-
hf download hf://spaces/andi200/fantasy-gridiron-glory-tracker/script.js
-
curl -L -o script.js https://huggingface.co/spaces/andi200/fantasy-gridiron-glory-tracker/resolve/main/script.js
659 Bytes
| document.addEventListener('DOMContentLoaded', function() { | |
| // 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' | |
| }); | |
| }); | |
| }); | |
| // Initialize tooltips | |
| const tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')); | |
| tooltipTriggerList.map(function (tooltipTriggerEl) { | |
| return new bootstrap.Tooltip(tooltipTriggerEl); | |
| }); | |
| }); |