# Добавление плагина на web-страницу

Для подключения плагина на страницу необходимо добавить в html-код страницы ссылку на основной скрипт плагина (`plugin_liveness.php`). `web-sdk-root-url` – это полученная от нас ссылка на Web Adapter.

<pre class="language-markup"><code class="lang-markup">&#x3C;script src="<a data-footnote-ref href="#user-content-fn-1">https://web-sdk-root-url</a>/plugin_liveness.php">&#x3C;/script>
</code></pre>

<details>

<summary>Для версий до 1.4.0</summary>

Добавьте в html-код страницы ссылку на основной скрипт плагина (`plugin_liveness.php`) и файл со стилями (`ozliveness.css`). `web-sdk-root-url` – это полученная от нас ссылка на Web Adapter.

<pre class="language-markup"><code class="lang-markup">&#x3C;link rel="stylesheet" href="https://<a data-footnote-ref href="#user-content-fn-2">web-sdk-root-url</a>/plugin/ozliveness.css" />
&#x3C;script src="https://<a data-footnote-ref href="#user-content-fn-3">web-sdk-root-url</a>/plugin_liveness.php">&#x3C;/script>
</code></pre>

</details>

{% hint style="info" %}
При использовании Angular и Vue подключение стилей и скриптов происходит так же. При интеграции с React-приложениями необходимо загружать и инициализировать плагин в `head` на главной странице шаблона. Внимание: при использовании `<React.StrictMode>` возможна некорректная работа Web Liveness.
{% endhint %}

[^1]: Расположение скрипта плагина

[^2]: ```
    Ссылка на Web Adapter, где размещен файл со стилями
    ```

[^3]: ```
    Ссылка на Web Adapter, где размещен основной скрипт плагина
    ```


---

# 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://doc.ozforensics.com/oz-knowledge-ru/rukovodstva/rukovodstvo-razrabotchika/sdk/websdk/web-plugin/dobavlenie-plagina-na-web-stranicu.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.
