Изоляторы секционные ИСМ
Похожие товары
Акционное предложение
Заказать товар
Заказать товар
Заказать звонок
Оставьте контакты
Менеджер поможет Вам сделать расчет!
// Закомментирован скрипт moclients
// wp_enqueue_script('moclients', 'https://moclients.com/js/17705.js');
// === Bitrix24 Widget ===
(function(w,d,u){
var s=d.createElement('script');
s.async=true;
s.src=u+'?'+(Date.now()/60000|0);
var h=d.getElementsByTagName('script')[0];
h.parentNode.insertBefore(s,h);
})(window,document,'https://cdn-ru.bitrix24.ru/b4102803/crm/site_button/loader_2_jc69s3.js');
// === Снежинки ===
(function() {
console.log('✅ Скрипт снега запущен');
const style = document.createElement('style');
style.textContent = `
.snowflake {
position: fixed;
top: -10px;
z-index: 9999;
user-select: none;
cursor: default;
pointer-events: none;
font-size: 1em;
text-shadow: 0 0 8px rgba(100, 200, 255, 0.9);
color: #64C8FF;
}
@keyframes snowfall {
0% {
top: -10px;
opacity: 1;
}
100% {
top: 100vh;
opacity: 0;
}
}
@keyframes sway {
0% { transform: translateX(0px); }
25% { transform: translateX(15px); }
50% { transform: translateX(0px); }
75% { transform: translateX(-15px); }
100% { transform: translateX(0px); }
}
.snowflake.falling {
animation: snowfall linear forwards, sway 3s ease-in-out infinite;
}
`;
document.head.appendChild(style);
const snowflakeChars = ['❄', '❅', '❆', '✻', '*'];
const blueColors = [
'#64C8FF',
'#00B4FF',
'#87CEEB',
'#6DB3E5',
'#A0D8FF',
'#00D9FF',
'#3D9EFF'
];
let activeSnowflakes = 0;
const maxSnowflakes = 50;
function createSnowflake() {
if (activeSnowflakes >= maxSnowflakes) return;
const snowflake = document.createElement('div');
snowflake.className = 'snowflake falling';
snowflake.textContent = snowflakeChars[Math.floor(Math.random() * snowflakeChars.length)];
snowflake.style.left = Math.random() * 100 + '%';
const duration = Math.random() * 8 + 10;
snowflake.style.animationDuration = duration + 's, 3s';
snowflake.style.animationDelay = Math.random() * 5 + 's, 0s';
snowflake.style.fontSize = (Math.random() * 1 + 0.8) + 'em';
snowflake.style.opacity = Math.random() * 0.5 + 0.5;
const randomColor = blueColors[Math.floor(Math.random() * blueColors.length)];
snowflake.style.color = randomColor;
snowflake.style.textShadow = `0 0 8px ${randomColor}80, 0 0 16px ${randomColor}40`;
document.body.appendChild(snowflake);
activeSnowflakes++;
setTimeout(() => {
snowflake.remove();
activeSnowflakes--;
}, (duration + 5) * 1000);
}
function init() {
for (let i = 0; i < 20; i++) {
setTimeout(() => {
createSnowflake();
}, i * 100);
}
setInterval(() => {
if (activeSnowflakes < maxSnowflakes) {
createSnowflake();
}
}, 800);
}
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', init);
} else {
init();
}
})();
// === SBIS Rating Widget ===
(function() {
const widgetHTML = `
`;
const widgetStyles = `
`;
function isDesktopOnly() {
return window.matchMedia('(min-width: 1025px)').matches;
}
function initWidget() {
if (!isDesktopOnly()) {
console.log('📱 Мобильное устройство - виджет не загружается');
return;
}
const savedStatus = localStorage.getItem('custom-rating-widget-closed');
if (savedStatus) {
const status = JSON.parse(savedStatus);
const now = Date.now();
const timePassed = now - status.timestamp;
const oneDayMs = 24 * 60 * 60 * 1000;
if (timePassed < oneDayMs) {
return;
}
}
document.head.insertAdjacentHTML('beforeend', widgetStyles);
document.body.insertAdjacentHTML('beforeend', widgetHTML);
if (typeof ym !== 'undefined') {
ym(31052901, 'reachGoal', 'rating_widget_shown');
console.log('✅ Цель отправлена: rating_widget_shown');
}
const closeBtn = document.querySelector('.custom-btn-close');
const widget = document.querySelector('.custom-rating-widget');
if (closeBtn && widget) {
closeBtn.addEventListener('click', function(e) {
e.preventDefault();
if (typeof ym !== 'undefined') {
ym(31052901, 'reachGoal', 'rating_widget_closed');
console.log('✅ Цель отправлена: rating_widget_closed');
}
widget.classList.add('hidden');
localStorage.setItem('custom-rating-widget-closed', JSON.stringify({
closed: true,
timestamp: Date.now()
}));
setTimeout(() => {
widget.remove();
}, 300);
});
}
const detailsLink = document.querySelector('.custom-rating-footer a');
if (detailsLink) {
detailsLink.addEventListener('click', function() {
if (typeof ym !== 'undefined') {
ym(31052901, 'reachGoal', 'rating_widget_details_clicked');
console.log('✅ Цель отправлена: rating_widget_details_clicked');
}
});
}
}
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', initWidget);
} else {
initWidget();
}
})();
