File size: 1,068 Bytes
73f4f81
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
// Main JavaScript file for event handlers and additional functionality

document.addEventListener('DOMContentLoaded', function() {
    // Initialize any necessary JavaScript functionality
    console.log('TechFusion Summit website loaded');
    
    // Mobile menu toggle functionality will be handled by the navbar component
});

// Form submission handler for registration
function handleRegistrationSubmit(event) {
    event.preventDefault();
    const form = event.target;
    const formData = new FormData(form);
    
    // Here you would typically send the data to your server
    console.log('Form submitted:', Object.fromEntries(formData));
    
    // Show success message
    alert('Thank you for registering! We will contact you shortly.');
    form.reset();
}

// Add event listener to registration form
document.addEventListener('DOMContentLoaded', function() {
    const registrationForm = document.querySelector('#registration-form');
    if (registrationForm) {
        registrationForm.addEventListener('submit', handleRegistrationSubmit);
    }
});