|
| 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", 2); |
| 18 | + script.setAttribute("runllm-usage-limit-effective-days", 30); |
| 19 | + script.setAttribute("runllm-usage-limit-message", `Hi! You've hit the limit for anonymous questions, but you can join us on Slack in #DaskBot and ask as many questions as you'd like.`); |
| 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"); |
| 23 | + |
| 24 | + script.async = true; |
| 25 | + document.head.appendChild(script); |
| 26 | +}); |
0 commit comments