Spaces:
Running
Running
Download script.js from mahmoud2858/projectflow-pro: direct link, hf CLI and curl.
- Browser
- Download file 772 Bytes
-
https://huggingface.co/spaces/mahmoud2858/projectflow-pro/resolve/main/script.js
- Command line
-
hf download hf://spaces/mahmoud2858/projectflow-pro/script.js
-
curl -L -o script.js https://huggingface.co/spaces/mahmoud2858/projectflow-pro/resolve/main/script.js
772 Bytes
| // 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' | |
| }); | |
| }); | |
| }); | |
| // Form submission handler | |
| document.addEventListener('DOMContentLoaded', function() { | |
| const contactForm = document.querySelector('form'); | |
| if (contactForm) { | |
| contactForm.addEventListener('submit', function(e) { | |
| e.preventDefault(); | |
| alert('ุดูุฑุงู ูุชูุงุตูู ู ุนูุง! ุณูุฑุฏ ุนููู ูู ุฃูุฑุจ ููุช ู ู ูู.'); | |
| this.reset(); | |
| }); | |
| } | |
| }); | |
| // Initialize feather icons | |
| feather.replace(); | |