Download script.js from Kiwi-Web-Design/pipe-dream-plumbers: direct link, hf CLI and curl.
- Browser
- Download file 596 Bytes
-
https://huggingface.co/spaces/Kiwi-Web-Design/pipe-dream-plumbers/resolve/main/script.js
- Command line
-
hf download hf://spaces/Kiwi-Web-Design/pipe-dream-plumbers/script.js
-
curl -L -o script.js https://huggingface.co/spaces/Kiwi-Web-Design/pipe-dream-plumbers/resolve/main/script.js
596 Bytes
| // Form submission handling | |
| document.addEventListener('DOMContentLoaded', function() { | |
| const forms = document.querySelectorAll('form'); | |
| forms.forEach(form => { | |
| form.addEventListener('submit', function(e) { | |
| e.preventDefault(); | |
| alert('Thank you for your request! We will contact you shortly.'); | |
| form.reset(); | |
| }); | |
| }); | |
| // Mobile menu toggle (will be used by navbar component) | |
| window.toggleMobileMenu = function() { | |
| const menu = document.getElementById('mobile-menu'); | |
| menu.classList.toggle('hidden'); | |
| }; | |
| }); |