HEX
Server: Apache/2.4.65 (Debian)
System: Linux 88f31f35b0b8 6.1.0-38-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.147-1 (2025-08-02) x86_64
User: www-data (33)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/publishpress/common/js/publishpress-admin.js
(function ($) {
    'use strict';
  
    /**
     * All of the code for admin-facing JavaScript source
     * should reside in this file.
     */
  
    $(document).ready(function () {

        initToolTips();
        function initToolTips() {
            $('.pp-title-tooltip').each(function() {
                var $this = $(this);
                var titleText = $this.attr('title');
        
                if (titleText && titleText !== '') {
                    $this.removeAttr('title');
        
                    var $tooltip = $('<div class="pp-title-tooltip-text"></div>').text(titleText);
                    $('body').append($tooltip);
        
                    $this.hover(function() {
                        $tooltip.show();
        
                        // Adjust the tooltip position to account for the arrow
                        var tooltipTop = $this.offset().top - $tooltip.outerHeight() - 10; // Position 10px above the element
                        var tooltipLeft = $this.offset().left + ($this.outerWidth() / 2) - ($tooltip.outerWidth() / 2);
        
                        $tooltip.css({
                            top: tooltipTop + 'px',
                            left: tooltipLeft + 'px',
                            position: 'absolute'
                        });
                    }, function() {
                        $tooltip.hide();
                    });
                }
            });
        }
  
    });
  
  })(jQuery);