mirror of
https://github.com/n8n-io/n8n-docs.git
synced 2026-03-27 09:28:43 +07:00
18 lines
1020 B
JavaScript
18 lines
1020 B
JavaScript
// https://docs.kapa.ai/integrations/website-widget/installation/mkdocs
|
|
|
|
document.addEventListener("DOMContentLoaded", function () {
|
|
var script = document.createElement("script");
|
|
script.src = "https://widget.kapa.ai/kapa-widget.bundle.js";
|
|
script.setAttribute("data-website-id", "d2598b63-bfa7-4ddd-a0ac-e6c69f4d0653");
|
|
script.setAttribute("data-project-name", "n8n");
|
|
script.setAttribute("data-project-color", "#EA4B71");
|
|
script.setAttribute("data-project-logo", "/_images/assets/n8n-icon-kapa-modal.png");
|
|
// Enable non-AI search https://docs.kapa.ai/integrations/website-widget/search
|
|
script.setAttribute("data-search-mode-enabled", true);
|
|
// Hide the Kapa widget
|
|
script.setAttribute("data-button-hide", true);
|
|
// Make sure we don't track users, so we don't have to put this behind the cookie widget https://docs.kapa.ai/integrations/website-widget/user-tracking
|
|
script.setAttribute("data-user-analytics-cookie-enabled", false);
|
|
script.async = true;
|
|
document.head.appendChild(script);
|
|
}); |