0CFA
In stock
Honor
.sales-badge{ display:flex; align-items:center; gap:10px; background:#fff; border-radius:999px; padding:8px 14px; box-shadow:0 4px 15px rgba(0,0,0,0.08); border:1px solid rgba(16,24,40,0.04); font-family:Outfit; font-size:16px; font-weight:500; color: #000 } /* 🔥 Flash animation for the SVG */ @keyframes flashPulse { 0% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }
svg.fire { width:24px; height:24px; animation: flashPulse 1.4s ease-in-out infinite; transform-origin: center center; }
.cls-3 { fill: url(#linear-gradient-1); } .cls-4 { fill: #fc9502; } .cls-5 { fill: #fce202; }
0 products sold in last 12 hours
const INTERVAL = 43200000; // 12 hours in milliseconds (12 * 60 * 60 * 1000)
// Random number between 2–10 function randomNumber() { return Math.floor(Math.random() * (10 – 2 + 1)) + 2; }
function updateSales() { const txt = document.getElementById(“soldText”);
let lastVal = parseInt(localStorage.getItem(“sales_value”)) || 0; let lastTime = parseInt(localStorage.getItem(“sales_time”)) || 0;
const now = Date.now();
if (now – lastTime >= INTERVAL) { const newVal = randomNumber(); localStorage.setItem(“sales_value”, newVal); localStorage.setItem(“sales_time”, now); txt.textContent = `${newVal} sold in last 12 hours`; } else { txt.textContent = `${lastVal} sold in last 12 hours`; } }
updateSales(); setInterval(updateSales, INTERVAL);
[CN-VERSION] HONOR Magic8
12GB, 16GB
1TB, 256GB, 512GB
There are no reviews yet.
Only logged in customers who have purchased this product may leave a review.
No products in the cart.
Reviews
There are no reviews yet.