ПопулярноеНовое

function callChat() { if (window.SherlockChat !== undefined) { var params = { externalId: null, settings: { chatFormMode: 0, editorMode: 0, chatFormMode: 3, channelsPanelMode:2, channelsIds: ["2f2fec27-b629-4ec9-97bb-a370b2edbb33", "9c91c77f-ad26-44e6-a8d2-c4d2a76a7168", "d490904f-2d0b-49b8-8c77-7d6fcedca1fc"], logoUrl : "", operatorName : "Kremlinstore чат", theme: { type: "Default", smileIconUrl: 'https://kremlinstore.ru/wa-data/public/shop/themes/clearcopy/images/emoji.png', attachIconUrl: 'https://kremlinstore.ru/wa-data/public/shop/themes/clearcopy/images/paperclip.png', sendIconUrl: 'https://kremlinstore.ru/wa-data/public/shop/themes/clearcopy/images/sendchat.png', } }, formFields: [ { name: 'Представьтесь, пожалуйста', code: 'Info', isRequired: false }, { name: 'Имя', code: 'FullName', isRequired: true}, ], strings: { startChatBtn: 'Начать' } }; let chat = new window.SherlockChat('https://kremlinstore.sherlockcrm.ru/API/', params, '3B983D99-8DF5-4C07-9E38-7C91110E5526', null); chat.InitWidget(); } else { setTimeout(function(){ callChat(); }, 100); } } callChat(); document.addEventListener("DOMContentLoaded", callChat); $(document).ready(function() { $('#tabs').easytabs({ updateHash: true }); }); $(function() { $(window).scroll(function() { if($(this).scrollTop() != 0) { $('#toTop').fadeIn(); } else { $('#toTop').fadeOut(); } }); $('#toTop').click(function() { $('body,html').animate({scrollTop:0},800); }); }); var minDost = Math.min(0, 0); var dost = $('#dost'); if (dost.length >0) { dost.html(minDost); } new Promise(function(e,n){var r;(r=document.createElement("script")).src="/wa-apps/blog/js/jquery.pageless2.js?v=1.4.2.40913",r.onload=e,r.onerror=n,document.head.appendChild(r)}); var fired = false; addListenerMulti(window, 'blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu', () => { if (fired === false) { fired = true; console.log('------------------TRIGGER') var asyncLoadScripts = window.setTimeout(() => { $.ajax({ type: 'GET', url: '/async/', async:true, cache: true, data: { main_action : 'default', ulk : '1', blog : 'Array', yandexsale : '', canonical : 'https://kremlinstore.ru/obzory-i-novosti/', mainPage : 'https://kremlinstore.ru', ref : '', config : '{"opt":null,"vk_api_id":4387331,"now":"?1675355931"}', }, success: function(html){ $('body').append(html); } }); }, 1000) } });