| Server IP : 81.19.159.101 / Your IP : 216.73.217.111 Web Server : Apache System : Linux www58.world4you.com 4.18.0-553.126.2.lve.el8.x86_64 #1 SMP Thu May 28 14:12:30 UTC 2026 x86_64 User : ftp8817043 ( 2681) PHP Version : 8.4.21 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/.sites/103/site8817043/web/wp-content/themes/enfold/js/ |
Upload File : |
(function($)
{
"use strict";
// fix back forward cache issue: http://stackoverflow.com/questions/11979156/mobile-safari-back-button
$(window).on( "pageshow", function( event )
{
if( event.originalEvent.persisted )
{
avia_site_preloader();
}
});
$( function()
{
// site preloader script
avia_site_preloader();
});
function avia_site_preloader()
{
var win = $(window),
preloader_active = $('html.av-preloader-active'),
pre_wrap;
if( preloader_active.length )
{
var hide = function()
{
pre_wrap.avia_animate( {opacity:0}, function()
{
preloader_active.removeClass( 'av-preloader-active' );
});
};
pre_wrap = $( '.av-siteloader-wrap' );
setTimeout( function()
{
$.avia_utilities.preload( { container: preloader_active, global_callback: hide } );
//fallback
setTimeout( function()
{
if( preloader_active.is( '.av-preloader-active' ) )
{
hide();
$.avia_utilities.log( 'Hide Preloader (Fallback)' );
}
}, 4000 );
if( pre_wrap.is('.av-transition-enabled') )
{
var comp = new RegExp(location.host),
exclude = " .no-transition, .mfp-iframe, .lightbox-added, a.avianolink, .grid-links-ajax a, #menu-item-search a, .wp-playlist-caption";
preloader_active.on( 'click', 'a:not(' + exclude + ')', function(e)
{
if(!e.metaKey && !e.ctrlKey && !e.altKey && !e.shiftKey)
{
var link = this;
if( comp.test(link.href) && link.href.split('#')[0] != location.href.split('#')[0] && link.target == "")
{
if(link.href.indexOf('mailto:') == -1 && link.href.indexOf('add-to-cart=') == -1 )
{
e.preventDefault();
preloader_active.addClass( 'av-preloader-active av-preloader-reactive' );
pre_wrap.avia_animate( {opacity:1}, function()
{
window.location = link.href;
});
}
}
}
});
}
}, 500 );
}
}
})(jQuery);