Download script.js from AppliantRobotics/robochef-revolution: direct link, hf CLI and curl.
- Browser
- Download file 806 Bytes
-
https://huggingface.co/spaces/AppliantRobotics/robochef-revolution/resolve/main/script.js
- Command line
-
hf download hf://spaces/AppliantRobotics/robochef-revolution/script.js
-
curl -L -o script.js https://huggingface.co/spaces/AppliantRobotics/robochef-revolution/resolve/main/script.js
806 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' | |
| }); | |
| }); | |
| }); | |
| // Form submission handling | |
| const contactForm = document.querySelector('form'); | |
| if (contactForm) { | |
| contactForm.addEventListener('submit', function(e) { | |
| e.preventDefault(); | |
| // Here you would typically send the form data to your server | |
| alert('Thank you for your interest! We will contact you soon.'); | |
| this.reset(); | |
| }); | |
| } | |
| }); |