streamsphere-saga / script.js
RONY132's picture
https://www.netflix.com/in/
c890478 verified
Raw History Blame Contribute Delete
714 Bytes
document.addEventListener('DOMContentLoaded', () => {
// Initialize lightbox functionality
const images = document.querySelectorAll('img');
images.forEach(img => {
img.addEventListener('click', () => {
// In a real implementation, this would open a lightbox/modal
console.log('Image clicked:', img.src);
});
});
// Smooth scroll for anchor links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
});
});