Ir directamente al contenido
/* redirect all collection to custom filtered All Products collection */
document.addEventListener("DOMContentLoaded", function() {
// Only show popup on specific pages
const allowedPages = [
'/pages/chromebooks-for-schools',
'/pages/bulk-chromebook-deals'
];
if (!allowedPages.includes(window.location.pathname)) return;
const popup = document.getElementById('formPopupWrapper');
const closeBtn = document.getElementById('formPopupClose');
if (!popup) return;
// Show popup 1.5s after page load
setTimeout(() => {
popup.style.display = 'flex';
}, 1500);
// Close popup on X
closeBtn.addEventListener('click', () => {
popup.style.display = 'none';
});
// Close popup when clicking outside
popup.addEventListener('click', (e) => {
if (e.target === popup) popup.style.display = 'none';
});
});