M
M
Maxim2019-07-05 19:03:52
JavaScript
Maxim, 2019-07-05 19:03:52

How to change the location of the Yandex.dialog widget on the site?

I need to move it from right to left, how can I do it?

<script type='text/javascript'>
(function () {
window['yandexChatWidgetCallback'] = function() {
try {
window.yandexChatWidget = new Ya.ChatWidget({
guid:
buttonText: 'Начать чат',
title: 'Чат',
theme: 'dark',
collapsedDesktop: 'never',
collapsedTouch: 'always'
});
} catch(e) { }
};
var n = document.getElementsByTagName('script')[0],
s = document.createElement('script');
s.async = true;
s.src = 'https://chat.s3.yandex.net/widget.js';
n.parentNode.insertBefore(s , n);
})();
</script>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question