Skip to content

Instantly share code, notes, and snippets.

@apalevich
Created March 4, 2020 09:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apalevich/6d08cb55d51f37df504dcda5266f8afd to your computer and use it in GitHub Desktop.
Save apalevich/6d08cb55d51f37df504dcda5266f8afd to your computer and use it in GitHub Desktop.
<!-- webim button generation date: 2017-03-15 version: 8.16.11 -->
<script type="text/javascript">
var webimLocation = '';
if(window.location.hostname.indexOf('www.laredoute.ru') == -1) webimLocation = 'mobilnaya_versiya_sayta';
var tcdiv1 = document.createElement("id");
tcdiv1.id = "tc_divid_1";
tcdiv1.style.cssText = "position: fixed;right: 18px;bottom: 80px;color: transparent;font-size: 0;padding: 5px 0px 5px 10px; border-radius: 100%; z-index: 5;";
document.body.appendChild(tcdiv1);
document.getElementById('tc_divid_1').innerHTML ='<a class="webim_button" href="#" rel="webim"><img src="' + document.location.protocol + '//cdn.laredoute.com/repository/sites/12/ru-RU/staticpages/helppages/images/icons/chat.png" border="0"/></a>';
webim = {
accountName: "laredouteru",
domain: "laredouteru.webim.ru",
location: webimLocation
};
(function () {
var s = document.createElement("script");
s.type = "text/javascript";
s.async = true;
s.src = "https://laredouteru.webim.ru/js/button.js";
document.getElementsByTagName("head")[0].appendChild(s);
})();
</script>
<!-- /webim button -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment