Spaces:
Running
Running
File size: 1,360 Bytes
f19a9f8 7d9f83e f19a9f8 7d9f83e f19a9f8 7d9f83e f19a9f8 7d9f83e f19a9f8 7d9f83e f19a9f8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
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');
});
|