Download script.js from bestfrank2021/sat-payflow-express: direct link, hf CLI and curl.
- Browser
- Download file 701 Bytes
-
https://huggingface.co/spaces/bestfrank2021/sat-payflow-express/resolve/main/script.js
- Command line
-
hf download hf://spaces/bestfrank2021/sat-payflow-express/script.js
-
curl -L -o script.js https://huggingface.co/spaces/bestfrank2021/sat-payflow-express/resolve/main/script.js
701 Bytes
| // Common functionality can be added here | |
| document.addEventListener('DOMContentLoaded', function() { | |
| // Initialize tooltips | |
| const tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')); | |
| tooltipTriggerList.map(function (tooltipTriggerEl) { | |
| return new bootstrap.Tooltip(tooltipTriggerEl); | |
| }); | |
| // 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' | |
| }); | |
| }); | |
| }); | |
| }); |