projectflow-pro / script.js
mahmoud2858's picture
Redesign the homepage layout.
e3e8e2d verified
Raw History Blame Contribute Delete
772 Bytes
// Smooth scrolling for anchor links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
});
// Form submission handler
document.addEventListener('DOMContentLoaded', function() {
const contactForm = document.querySelector('form');
if (contactForm) {
contactForm.addEventListener('submit', function(e) {
e.preventDefault();
alert('ุดูƒุฑุงู‹ ู„ุชูˆุงุตู„ูƒ ู…ุนู†ุง! ุณู†ุฑุฏ ุนู„ูŠูƒ ููŠ ุฃู‚ุฑุจ ูˆู‚ุช ู…ู…ูƒู†.');
this.reset();
});
}
});
// Initialize feather icons
feather.replace();