Files
zulip/static/js/portico/tippyjs.js
Lauryn Menard 8a20884230 tippy: Initialize tippy in portico.
As a prep-commit for updating the billing / corporate pages for
demo organizations, initialize tippy.js with a default setting
for portico pages to use in general.
2022-08-29 11:43:45 -07:00

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();
});