Spaces:
Running

ink-thread-tees / script.js
Gadotey01's picture
can you Create T-Shirt printing website where customers can visit and order t-shirts by selecting a design, the shirt type, for example t-shirt, polo shirts and hoodies, and they can order either a single or bulk and make payments
3fef93b verified
Raw History Blame Contribute Delete
494 Bytes
// Shared JavaScript across all pages
document.addEventListener('DOMContentLoaded', () => {
console.log('Pawsome Pet Paradise loaded!');
// 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'
});
});
});
});