Spaces:
Running
Running
| // 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); | |
| } | |
| }); |