HEX
Server: Apache
System: Linux webm005.cluster121.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: adventp (418412)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/adventp/www/wp-content/plugins/js_composer/assets/js/lib/info-tooltip.js
(function ($) {
    $.fn.initializeTooltips = function ( boundary ) {
        this.each(function () {
            var element = this;
            var tooltipEl = $(this).next('.tooltip-content')[0];

            var hideTimeout;
            function show() {
                clearTimeout(hideTimeout);
                element.setAttribute('data-show', '');
                popperInstance.update();
            }

            function hide() {
                hideTimeout = setTimeout(function () {
                    element.removeAttribute('data-show');
                }, 500);
            }

            var showEvents = ['mouseenter', 'focus'];
            var hideEvents = ['mouseleave', 'blur'];

            showEvents.forEach(function (event) {
                element.addEventListener(event, show);
                tooltipEl.addEventListener(event, show);
            });

            hideEvents.forEach(function (event) {
                element.addEventListener(event, hide);
                tooltipEl.addEventListener(event, hide);
            });

            if (!boundary) {
                boundary = '.vc_shortcode-param';
            }

            var popperInstance = Popper.createPopper(element, tooltipEl, {
                placement: 'bottom-start',
                modifiers: [
                    {
                        name: 'offset',
                        options: {
                            offset: [10, 5],
                        },
                    },
                    {
                        name: 'preventOverflow',
                        options: {
                            boundary: element.closest(boundary),
                            altAxis: true,
                            tether: false,
                            rootBoundary: 'document',
                        },
                    },
                ],
            });
        });
        return this; // Maintain jQuery chaining
    };
})(jQuery);