PageSourceSearch

https://peripass.com/wp-content/plugins/breakdance/subplugins/brea…/breakdance-tooltips.js?bd_ver=2.8.3

js peripass.com collected 2026-10-04 08:30:37 UTC 1,314 bytes, 47 lines download raw bytes

1(function () {
2  const { mergeObjects } = BreakdanceFrontend.utils;
3
4  class BreakdanceTooltip {
5    defaultOptions = {
6      placement: "bottom",
7      offset: 10,
8      preview: false,
9      hideArrow: false,
10    };
11
12    constructor(selector, id, options) {
13      this.selector = selector;
14      this.id = id;
15      this.element = document.querySelector(`${this.selector}`);
16      this.options = mergeObjects(this.defaultOptions, options);
17      this.isBuilder = !!window.parent.Breakdance;
18      this.init();
19    }
20
21    destroy() {
22      if (!this.tippyInstance) return;
23      this.tippyInstance.destroy();
24    }
25
26    update() {
27      this.destroy();
28      this.init();
29    }
30
31    init() {
32      if (typeof tippy !== "function") return;
33      this.tippyInstance = tippy(this.element, {
34        allowHTML: true,
35        arrow: this.options.hideArrow ? false : true,
36        offset: [0, this.options.offset],
37        placement: this.options.placement,
38        interactive: this.isBuilder ? false : true,
39        theme: `bde-tooltip-theme-${this.id}`,
40        trigger: this.options.preview ? "manual" : "mouseenter focus",
41        hideOnClick: this.options.preview ? false : true,
42        showOnCreate: this.options.preview ? true : false,
43      });
44    }
45  }
46  window.BreakdanceTooltip = BreakdanceTooltip;
47})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.