File: custom.js

package info (click to toggle)
dask 2024.12.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 20,024 kB
  • sloc: python: 105,182; javascript: 1,917; makefile: 159; sh: 88
file content (26 lines) | stat: -rw-r--r-- 1,465 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
document.addEventListener("DOMContentLoaded", function () {
  var script = document.createElement("script");
  script.type = "module";
  script.id = "runllm-widget-script"

  script.src = "https://widget.runllm.com";

  script.setAttribute("version", "stable");
  script.setAttribute("runllm-keyboard-shortcut", "Mod+j"); // cmd-j or ctrl-j to open the widget.
  script.setAttribute("runllm-name", "DaskBot");
  script.setAttribute("runllm-position", "BOTTOM_RIGHT"); // put above ethical ads
  script.setAttribute("runllm-position-x", "20px");
  script.setAttribute("runllm-position-y", "50%");
  script.setAttribute("runllm-assistant-id", "273");
  script.setAttribute("runllm-theme-color", "#FFC11E");
  script.setAttribute("runllm-slack-community-url", "https://dask.slack.com/");
  script.setAttribute("runllm-per-user-usage-limit", 5);
  script.setAttribute("runllm-usage-limit-effective-days", 30);
  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.`);
  script.setAttribute("runllm-brand-logo", "_images/dask_icon.svg");
  script.setAttribute("runllm-floating-button-text", "Ask DaskBot");
  script.setAttribute("runllm-join-community-text", "Chat with DaskBot in Slack (join the #DaskBot channel)");

  script.async = true;
  document.head.appendChild(script);
});