mirror of https://github.com/zulip/zulip.git
19 lines
408 B
JavaScript
19 lines
408 B
JavaScript
|
import $ from "jquery";
|
||
|
import tippy from "tippy.js";
|
||
|
|
||
|
function initialize() {
|
||
|
tippy("[data-tippy-content]", {
|
||
|
// Same defaults as set in web app tippyjs module.
|
||
|
maxWidth: 300,
|
||
|
delay: [100, 20],
|
||
|
touch: ["hold", 750],
|
||
|
// Different default from web app tippyjs module.
|
||
|
animation: true,
|
||
|
placement: "bottom",
|
||
|
});
|
||
|
}
|
||
|
|
||
|
$(() => {
|
||
|
initialize();
|
||
|
});
|