| 1 |
document.addEventListener("DOMContentLoaded", function () { |
| 2 |
var script = document.createElement("script"); |
| 3 |
script.type = "module"; |
| 4 |
script.id = "runllm-widget-script" |
| 5 |
|
| 6 |
script.src = "https://widget.runllm.com"; |
| 7 |
|
| 8 |
script.setAttribute("version", "stable"); |
| 9 |
script.setAttribute("runllm-keyboard-shortcut", "Mod+j"); // cmd-j or ctrl-j to open the widget. |
| 10 |
script.setAttribute("runllm-name", "DaskBot"); |
| 11 |
script.setAttribute("runllm-position", "BOTTOM_RIGHT"); // put above ethical ads |
| 12 |
script.setAttribute("runllm-position-x", "20px"); |
| 13 |
script.setAttribute("runllm-position-y", "50%"); |
| 14 |
script.setAttribute("runllm-assistant-id", "273"); |
| 15 |
script.setAttribute("runllm-theme-color", "#FFC11E"); |
| 16 |
script.setAttribute("runllm-slack-community-url", "https://dask.slack.com/"); |
| 17 |
script.setAttribute("runllm-per-user-usage-limit", 5); |
| 18 |
script.setAttribute("runllm-usage-limit-effective-days", 30); |
| 19 |
script.setAttribute("runllm-usage-limit-message", `Hi! You've hit the limit for questions here in the docs, but you can join us on the Dask community Slack and ask as many questions as you'd like in #DaskBot channel. Hope to see you there.`); |
| 20 |
script.setAttribute("runllm-brand-logo", "_images/dask_icon.svg"); |
| 21 |
script.setAttribute("runllm-floating-button-text", "Ask DaskBot"); |
| 22 |
script.setAttribute("runllm-join-community-text", "Chat with DaskBot in Slack (join the #DaskBot channel)"); |
| 23 |
|
| 24 |
script.async = true; |
| 25 |
document.head.appendChild(script); |
| 26 |
}); |