File size: 551 Bytes
58ff976
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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' });
            });
        });
    }
});