Download script.js from developerosman/feedbackfusion-dark-delight: direct link, hf CLI and curl.
- Browser
- Download file 743 Bytes
-
https://huggingface.co/spaces/developerosman/feedbackfusion-dark-delight/resolve/main/script.js
- Command line
-
hf download hf://spaces/developerosman/feedbackfusion-dark-delight/script.js
-
curl -L -o script.js https://huggingface.co/spaces/developerosman/feedbackfusion-dark-delight/resolve/main/script.js
743 Bytes
| document.addEventListener('DOMContentLoaded', function() { | |
| // Add any global JavaScript functionality here | |
| // Example: Smooth scroll 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 all tooltips | |
| const tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')); | |
| tooltipTriggerList.map(function (tooltipTriggerEl) { | |
| return new bootstrap.Tooltip(tooltipTriggerEl); | |
| }); | |
| }); |