# Widget

## Is it possible to change a location of the widget?

Sure. Necessary js-code is below:&#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>
```

It allow changing a location of the widget vertically. Change value of `bottom`

## Is it possible to place the widget under a custom button?&#x20;

Yes, it is possible. You should place the following code under the widget's code:

```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>
```

The function `showBlinger` is responsible for display of a channel (list of channels), the function `hideBlinger` hides the list.&#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/faq-1/widget.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.
