Додайте товари для порівняння
Бажання
Додайте товари до списку бажань
Графік роботи:

Будні:         9:00–19:00
Субота:      10:00–18:00
Неділя:       10:00-18:00
Замовлення: online 24/7

0
Мій кошик
Додайте товари до кошика

Електронний 3-осьовий стабілізатор Snoppa ATOM, Стабілізатор для телефону

Артикул 6654235634
6 177 грн
6 090 грн
В наявності
Оптові ціни від 2 одиниць
Увійдіть на сайт щоб
додати товар в список бажань
Поширити у соцмережах
// ====================== // 🌐 СТРАНИЦЫ ТОЛЬКО ЗАКАЗЫ/ЧАС // ====================== const onlyOrdersPages = [ "/", "/ua/", "/katalog/", "/ua/katalog/", "/katalog/search/", "/ua/katalog/search/" ]; function isOnlyOrdersPage() { let path = window.location.pathname; if (!path.endsWith("/")) path += "/"; return onlyOrdersPages.includes(path); } // ====================== // 🌐 ЯЗЫК // ====================== function getLang() { return window.location.pathname.startsWith('/ua') ? 'ua' : 'ru'; } // ====================== // 📦 СТРАНИЦА ТОВАРА // ====================== const buyBtn = document.querySelector('button[type="submit"], .buy-button, .product__buy, .addtocart'); const isProductPage = !!buyBtn; function isOutOfStock() { const text = document.body.innerText.toLowerCase(); return text.includes('немає в наявності') || text.includes('нет в наличии'); } // ====================== // 🔢 RANDOM // ====================== function random(min, max) { return Math.floor(Math.random() * (max - min + 1)) + min; } // ====================== // ====================== // ====================== // 🟢 POPUP ПОКУПКИ // ====================== function showPurchasePopup() { const lang = getLang(); const names = [ "Олександр","Максим","Дмитро","Андрій","Ігор", "Марія","Олена","Ірина","Оксана" ]; const cities = [ "Київ","Львів","Одеса","Харків","Дніпро" ]; const texts = { ua: "оформив(ла) замовлення", ru: "оформил(а) заказ" }; const popup = document.createElement("div"); popup.innerHTML = `
${names[0][0]}
${names[random(0,names.length-1)]} ${cities[random(0,cities.length-1)]} ${texts[lang]}
`; popup.style.position = "fixed"; popup.style.left = "10px"; popup.style.bottom = "0px"; // ⬅️ было 20px (подняли на 10px) popup.style.background = "#fff"; popup.style.padding = "10px"; // ⬅️ уменьшили высоту popup.style.borderRadius = "12px"; popup.style.boxShadow = "0 10px 25px rgba(0,0,0,0.15)"; popup.style.zIndex = "9999"; document.body.appendChild(popup); // ====================== // 🎯 КЛИК ПО ОРИГИНАЛЬНОЙ КНОПКЕ // ====================== const btn = popup.querySelector('.popup-order-btn'); btn.addEventListener('click', () => { const searchTexts = lang === 'ua' ? ['швидке замовлення', 'замовити швидко'] : ['быстрый заказ']; const elements = document.querySelectorAll( 'button,a,input[type="submit"]' ); let targetBtn = null; elements.forEach(el => { const text = ( el.innerText || el.value || '' ) .trim() .toLowerCase(); searchTexts.forEach(search => { if (text.includes(search) && !targetBtn) { targetBtn = el; } }); }); if (targetBtn) { popup.remove(); targetBtn.click(); } }); setTimeout(() => popup.remove(), 6000); decreaseStock(); } // ====================== // 🔥 POPUP ЗАКАЗЫ ЗА ЧАС // ====================== function showOrdersHourPopup() { const lang = getLang(); const texts = { ua: "замовлень за останню годину", ru: "заказов за последний час" }; const popup = document.createElement("div"); popup.innerHTML = `
🔥 ${random(200,400)} ${texts[lang]}
`; popup.style.position = "fixed"; popup.style.left = "20px"; popup.style.bottom = "20px"; popup.style.background = "#fff"; popup.style.padding = "12px"; popup.style.borderRadius = "12px"; popup.style.boxShadow = "0 10px 25px rgba(0,0,0,0.15)"; popup.style.zIndex = "9999"; document.body.appendChild(popup); setTimeout(() => popup.remove(), 6000); } // ====================== // 👁 ПРОСМОТРЫ // ====================== function createViewingBadge() { if (!isProductPage || isOutOfStock()) return; const lang = getLang(); const texts = { ua: "👁 Зараз переглядають цей товар", ru: "👁 Сейчас смотрят этот товар" }; const badge = document.createElement("div"); badge.innerHTML = ` ${texts[lang]} ${random(15,40)} людей `; badge.style.margin = "5px 0"; badge.style.fontSize = "14px"; badge.style.fontFamily = "Rubik, sans-serif"; badge.style.background = "rgba(119,186,26,0.08)"; badge.style.padding = "8px 12px"; badge.style.borderRadius = "10px"; const elements = document.querySelectorAll("div, span, p"); let target = null; elements.forEach(el => { const text = el.innerText?.toLowerCase() || ""; if (text.includes("оптовые цены") || text.includes("оптові ціни")) { target = el; } }); if (target && target.parentNode && target.parentNode.parentNode) { target.parentNode.parentNode.insertBefore(badge, target.parentNode); } } // ====================== // 🟠 СЧЕТЧИК АКЦИИ // ====================== function getProductKey() { let path = window.location.pathname; path = path.replace(/^\/ua\//, '/'); return "stock_" + path; } function getStockSession() { const key = getProductKey(); let data = localStorage.getItem(key); if (data) { data = JSON.parse(data); if (Date.now() - data.time < 600000) return data; } const newData = { count: random(30, 60), time: Date.now() }; localStorage.setItem(key, JSON.stringify(newData)); return newData; } // ====================== // 📉 УМЕНЬШЕНИЕ (ДОБАВИЛИ) // ====================== function decreaseStock() { const key = getProductKey(); let data = localStorage.getItem(key); if (!data) return; data = JSON.parse(data); if (data.count > 1) { data.count -= 1; localStorage.setItem(key, JSON.stringify(data)); } renderStockBadge(); } // ====================== // 🎯 ОТРИСОВКА СЧЕТЧИКА // ====================== function renderStockBadge() { if (!isProductPage || isOutOfStock()) return; const lang = getLang(); const texts = { ua: "🔥 Залишилось товарів по акції:", ru: "🔥 Осталось товаров по акции:" }; let badge = document.getElementById("stock-badge"); const data = getStockSession(); if (!badge) { badge = document.createElement("div"); badge.id = "stock-badge"; badge.style.margin = "10px auto"; badge.style.textAlign = "center"; badge.style.background = "rgba(119,186,26,0.08)"; badge.style.padding = "12px"; badge.style.borderRadius = "12px"; badge.style.maxWidth = "350px"; const elements = document.querySelectorAll("div, span, p"); let target = null; elements.forEach(el => { const t = el.innerText?.toLowerCase() || ""; if (t.includes("до кінця акції") || t.includes("до конца акции")) { target = el; } }); if (target && target.parentNode) { target.parentNode.insertBefore(badge, target); } else { document.body.appendChild(badge); } } badge.innerHTML = ` ${texts[lang]} ${data.count} шт `; } // ====================== // 🚀 ЗАПУСК // ====================== if (isOnlyOrdersPage()) { function loop() { showOrdersHourPopup(); setTimeout(loop, random(12000,15000)); } setTimeout(loop, 2000); } else { if (isProductPage) { createViewingBadge(); function loop() { if (!isOutOfStock()) showPurchasePopup(); setTimeout(loop, random(12000,15000)); } setTimeout(loop, 2000); } setTimeout(renderStockBadge, 1000); }