Spaces:
Running
Running
| document.addEventListener('DOMContentLoaded', function() { | |
| // Enhanced form field interactions | |
| const formFields = document.querySelectorAll('.form-field input, .form-field select, .form-field textarea'); | |
| formFields.forEach(field => { | |
| const parent = field.parentElement; | |
| field.addEventListener('focus', function() { | |
| parent.classList.add('field-active'); | |
| parent.style.transform = 'translateY(-2px)'; | |
| }); | |
| field.addEventListener('blur', function() { | |
| parent.classList.remove('field-active'); | |
| parent.style.transform = ''; | |
| }); | |
| // Add validation indicators | |
| field.addEventListener('input', function() { | |
| if(this.value.trim() !== '') { | |
| this.classList.add('has-value'); | |
| } else { | |
| this.classList.remove('has-value'); | |
| } | |
| }); | |
| }); | |
| // Button hover effects | |
| const buttons = document.querySelectorAll('.btn'); | |
| buttons.forEach(btn => { | |
| btn.addEventListener('mouseenter', () => { | |
| btn.style.transform = 'translateY(-2px)'; | |
| }); | |
| btn.addEventListener('mouseleave', () => { | |
| btn.style.transform = ''; | |
| }); | |
| }); | |
| console.log('FUNÇÕES QUE ABREM ESTE MAPA:'); | |
| console.log('> AS00P010'); | |
| }); | |