Добавьте один из следующих JavaScript-кодов в HTML-код страницы вашего сайта.
Код чата асинхронный и не блокирует загрузку вашего сайта.
Вариант 1: Виджет чата во фрейме
<div id="chat_trollface667"></div><p><a href="https://chatovod.com/ru/" target="_blank">Создать свой чат.</a></p> <script type="text/javascript"> var chatovodOnLoad = chatovodOnLoad || []; chatovodOnLoad.push(function() { chatovod.addChatToDivId("chat_trollface667", {host: "trollface667.chatovod.com", width: "100%", height: 380, defaultLanguage: "ru"}); }); (function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.charset = "UTF-8"; po.async = true; po.src = 'https://st1.chatovod.com/api/js/v1.js?3'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })(); </script>
Вариант 2: Плавающее окно чата, открываемое по кнопке
<script type="text/javascript"> var chatovodOnLoad = chatovodOnLoad || []; chatovodOnLoad.push(function() { chatovod.addChatButton({host: "trollface667.chatovod.com", align: "bottomRight", width: 600, height: 380, defaultLanguage: "ru"}); }); (function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.charset = "UTF-8"; po.async = true; po.src = 'https://st1.chatovod.com/api/js/v1.js?3'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })(); </script>
https://trollface667.chatovod.com/?type=vk
https://trollface667.chatovod.com/?type=fb