| Server IP : 38.190.208.107 / Your IP : 216.73.217.46 Web Server : nginx/1.28.1 System : Linux ht2026040333114 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.37-1 (2023-07-03) x86_64 User : root ( 0) PHP Version : 8.2.28 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv,eval,assert,passthru,system,exec,shell_exec,popen,proc_open MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/wp.3/wp-content/plugins/Ultimate_VC_Addons/assets/js/ |
Upload File : |
( function ( $, window, undefined ) {
$( document ).ready( function ( a ) {
init_tooltip();
setTimeout( function () {
$( window ).load( function () {
if ( $( '.ult_hotspot_container' ).length > 0 ) {
const status =
$( '.ult_hotspot_container' )
.find( '.ult-hotspot-tooltip' )
.attr( 'data-status' ) || 'hide';
if ( status === 'show' ) {
$( '.ult-tooltipstered' ).ulttooltipster( 'destroy' );
}
init_tooltip();
}
} );
}, 700 );
$( document ).ajaxComplete( function ( e, xhr, settings ) {
init_tooltip();
} );
function init_tooltip() {
let parama1 = '',
parama2 = '';
$( 'a[href="#"]' ).click( function ( event ) {
event.preventDefault();
} );
a( '.ult_hotspot_container.ult-hotspot-tooltip-wrapper' ).each(
function () {
const hotspotContainer = a(this);
// Destroy any existing tooltips before attaching new ones
$(".ult-hotspot-tooltip", hotspotContainer).each(function() {
if ($(this).hasClass('tooltipstered')) {
$(this).tooltipster('destroy');
}
});
/*var f = a(this).data("width") || 320,*/
const g = hotspotContainer.data('opacity') || 0.5;
a(
".ult-hotspot-tooltip[data-link_style='tootip']",
a( this )
).each( function () {
if ( $( this ).find( '.aio-icon-img' ).length > 0 ) {
var iconHeight = $( this )
.find( '.aio-icon-img' )
.outerHeight( true );
var iconWidth = $( this )
.find( '.aio-icon-img' )
.outerWidth( true );
} else {
var iconHeight = jQuery( this )
.find( '.aio-icon' )
.outerHeight( true );
var iconWidth = jQuery( this )
.find( '.aio-icon' )
.outerWidth( true );
}
let y = Math.round( iconHeight / 2 );
let x = Math.round( iconWidth / 2 );
let h,
d = a( this ).data( 'tooltipanimation' ),
e = a( this ).data( 'trigger' ) || 'hover';
const j = a( this ).data( 'arrowposition' ) || 'top';
const ba = a( this ).data( 'bubble-arrow' );
const ContentStyle = a( this ).data(
'tooltip-content-style'
); // || false;
const BaseStyle = a( this ).data(
'tooltip-base-style'
); // || false;
let k = a( this )
.find( '.hotspot-tooltip-content' )
.html(),
l = 3,
m = a( this ).data( 'tooltip-offsety' ) || 0;
k = a( this )
.find( '.hotspot-tooltip-content' )
.html( k )
.text();
const custid = a( this ).data( 'mycust-id' );
parama1 = a( this ).data( 'ultimate-target' );
parama2 = a( this ).data( 'responsive-json-new' );
parama2 = JSON.stringify( parama2 );
if ( j == 'top' ) {
y = 0;
}
if ( j == 'bottom' ) {
y = iconHeight;
}
if ( j == 'left' ) {
y = -y;
x = 0;
}
if ( j == 'right' ) {
x = iconWidth;
y = -y;
}
if (
/firefox/.test( navigator.userAgent.toLowerCase() )
) {
x = 0;
y = 0;
}
a( this ).ulttooltipster( {
content: k,
position: j,
offsetX: x, //l,
offsetY: y, //0, //m,
/* Ultimate Options
*---------------------------*/
ultCustomTooltipStyle: true,
ultContentStyle: ContentStyle,
ultBaseStyle: BaseStyle,
//ultContainerWidth: r,
//ultBaseWidth: f,
//ultPadding: pd,
//ultBaseBGColor: cbgc,//"rgb(8, 187, 252)",
//ultBaseBorderColor: cbc,//"rgb(8, 187, 252)",
//ultBaseColor: cc,
//maxWidth: 300,
arrow: ba,
// Bubble arrow
//arrow: true,
//customid: custid,
delay: 100,
speed: 300,
interactive: ! 0,
animation: d,
trigger: e,
/*positionTracker: true,*/
/*contentAsHTML: 1,*/
contentAsHTML: 1 /* ultimate */ /* ultimate */,
//theme: 'tooltipster-default', //"tooltipster-" + c,
/*minWidth: r,*/
/*ultContainerWidth: f,*/ /*ultContentSize: r,*/ ult_adv_id: custid,
responsive_json_new: parama2,
ultimate_target: parama1,
} );
} );
}
);
}
} );
} )( jQuery, window );