const style = document.createElement('style'); style.textContent = ` `; document.head.appendChild(style); // Разметка виджета const container = document.createElement('div'); container.className = 'chat-button-container'; container.innerHTML = `
`; document.body.appendChild(container); document.getElementById('chat-button').addEventListener('click', function () { var socialButtons = document.getElementById('social-buttons'); document.getElementById('social-buttons').style.display = 'flex' socialButtons.classList.toggle('show-social-buttons'); document.getElementById('chat-widget-container').style.display = 'none' document.getElementById('social-buttons').style.bottom = '110%' }); document.getElementById('livechat').addEventListener('click', function () { document.getElementById('social-buttons').style.display = 'none' }) // JavaScript function openLiveChat() { LiveChatWidget.call('maximize'); // Open the live chat document.getElementById('chat-widget-container').style.display = 'block' } window.__lc = window.__lc || {}; window.__lc.license = 16860420; window.__lc.integration_name = "manual_channels"; window.__lc.product_name = "livechat"; ; (function (n, t, c) { function i(n) { return e._h ? e._h.apply(null, n) : e._q.push(n) } var e = { _q: [], _h: null, _v: "2.0", on: function () { i(["on", c.call(arguments)]) }, once: function () { i(["once", c.call(arguments)]) }, off: function () { i(["off", c.call(arguments)]) }, get: function () { if (!e._h) throw new Error("[LiveChatWidget] You can't use getters before load."); return i(["get", c.call(arguments)]) }, call: function () { i(["call", c.call(arguments)]) }, init: function () { var n = t.createElement("script"); n.async = !0, n.type = "text/javascript", n.src = "https://cdn.livechatinc.com/tracking.js", t.head.appendChild(n) } }; !n.__lc.asyncInit && e.init(), n.LiveChatWidget = n.LiveChatWidget || e }(window, document, [].slice)); import("https://amhtechnologies.com/public/assets/js/widjetnew.js");