Download script.js from fernando-bold/solar-property-wizard: direct link, hf CLI and curl.
- Browser
- Download file 551 Bytes
-
https://huggingface.co/spaces/fernando-bold/solar-property-wizard/resolve/main/script.js
- Command line
-
hf download hf://spaces/fernando-bold/solar-property-wizard/script.js
-
curl -L -o script.js https://huggingface.co/spaces/fernando-bold/solar-property-wizard/resolve/main/script.js
551 Bytes
| document.addEventListener('DOMContentLoaded', () => { | |
| // Form validation logic can be added here | |
| console.log('Solar Property Wizard initialized'); | |
| // Smooth scrolling for form steps | |
| const formContainer = document.querySelector('custom-solar-form'); | |
| if (formContainer) { | |
| formContainer.shadowRoot.querySelectorAll('button').forEach(button => { | |
| button.addEventListener('click', () => { | |
| formContainer.scrollIntoView({ behavior: 'smooth', block: 'start' }); | |
| }); | |
| }); | |
| } | |
| }); |