Current Path : /storage/v11800/affypharma/public_html/wp-content/plugins/loftloader/assets/js/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/affypharma/public_html/wp-content/plugins/loftloader/assets/js/loftloader.js |
( function() {
function loftloader_finished() {
document.body.classList.add( 'loaded' );
}
var loader = document.getElementById( 'loftloader-wrapper' );
if ( loader ) {
window.addEventListener( 'load', function( e ) {
loftloader_finished();
} );
if ( loader.dataset && loader.dataset.showCloseTime ) {
var showCloseTime = parseInt( loader.dataset.showCloseTime, 10 ), maxLoadTime = false,
closeBtn = loader.getElementsByClassName( 'loader-close-button' );
if ( showCloseTime && closeBtn.length ) {
setTimeout( function() {
closeBtn[0].style.display = '';
}, showCloseTime );
closeBtn[0].addEventListener( 'click', function( e ) {
loftloader_finished();
} );
}
}
if ( loader.dataset.maxLoadTime ) {
maxLoadTime = loader.dataset.maxLoadTime;
maxLoadTime = parseInt( maxLoadTime, 10 );
if ( maxLoadTime ) {
setTimeout( function() {
loftloader_finished();
}, maxLoadTime );
}
}
}
} ) ();