# Виджет

## Можно ли менять месторасположение виджета?

Да. Используйте js-код ниже.&#x20;

```javascript
<script>
window['blingerInit'] = function () {
var newStyles = "#blinger-launcher-iframe {bottom: 40px !important;}.blinger-channels-iframe{bottom: 136px !important;}";
newStyles = newStyles + ".blinger-channels-iframe.blinger-channels-iframe-mobile {bottom: 160px !important;}.blinger-invitation-iframe {bottom: 130px !important;}";
newStyles = newStyles + "@keyframes blinger-channels-desktop-show{0%{bottom:70px;opacity:0;}100%{bottom:136px;opacity:1;}}";
newStyles = newStyles + "@keyframes blinger-channels-desktop-hide{0%{bottom:136px;opacity:1;}100%{bottom:70px;opacity:0;}}";
$( "<style>" + newStyles + "</style>" ).appendTo( "body" )
};
</script>
```

Он позволяет менять месторасположение виджета по вертикали. Для этого меняйте значение параметра `bottom`

## Можно разместить виджет под кастомную кнопку?&#x20;

Да, это возможно. Необходимо разместить под кодом виджета:&#x20;

```javascript
<script>
    window['blingerInit'] = function () {
        document.getElementById('blinger-launcher-iframe').style.display = 'none';
    };

    var showBlinger = function () {
        if (typeof Blinger !== 'undefined' && !Blinger.launcherWidget.isOpen) {
            Blinger.launcherWidget.onLaunchButtonClick();
        }
    };

    var hideBlinger = function () {
        if (typeof Blinger !== 'undefined' && Blinger.launcherWidget.isOpen) {
            Blinger.launcherWidget.onLaunchButtonClick();
        }
    };
</script>
```

Функция `showBlinger` отвечает за отображение канала (списка каналов), функция `hideBlinger` скрывает список.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.blinger.io/russian/faq-1/livechat.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
