Skip to content
- Choosing a selection results in a full page refresh.
- Opens in a new window.
🔥 Limited Stock Available
// 🔥 Shopify se products fetch
let products = [];
fetch('/products.json')
.then(res => res.json())
.then(data => {
products = data.products;
});
function showPopup() {
if (products.length === 0) return;
const name = names[Math.floor(Math.random() * names.length)];
const city = cities[Math.floor(Math.random() * cities.length)];
const product = products[Math.floor(Math.random() * products.length)];
const popup = document.getElementById("live-sale-popup");
const text = document.getElementById("sale-text");
text.innerHTML = `${name} from ${city} just bought ${product.title}`;
popup.classList.add("show");
setTimeout(() => {
popup.classList.remove("show");
}, 4000);
}
setInterval(showPopup, 7000);
🔥 Deal ends in 03:45
/* PREMIUM BADGES */