Sindbad~EG File Manager

Current Path : /proc/142261/cwd/plugins/redux-framework/redux-core/assets/js/redux/
Upload File :
Current File : //proc/142261/cwd/plugins/redux-framework/redux-core/assets/js/redux/sticky-info.js

(function ( $ ) {
	'use strict';

	$.redux = $.redux || {};

	$.redux.stickyInfo = function () {
		const sticky      = $( '#redux-sticky' );
		const infoBar     = $( '#info_bar' );
		const reduxFooter = $( '#redux-footer' );
		const stickyWidth = $( '.redux-main' ).innerWidth() - 20;
		const $width      = sticky.offset().left;

		$( '.redux-save-warn' ).css( 'left', $width + 'px' );

		if ( ! infoBar.isOnScreen() && ! $( '#redux-footer-sticky' ).isOnScreen() ) {
			reduxFooter.css(
				{ position: 'fixed', bottom: '0', width: stickyWidth, right: 21 }
			);

			reduxFooter.addClass( 'sticky-footer-fixed' );
			$( '#redux-sticky-padder' ).show();
		} else {
			reduxFooter.css(
				{ background: '#eee', position: 'inherit', bottom: 'inherit', width: 'inherit' }
			);

			$( '#redux-sticky-padder' ).hide();
			reduxFooter.removeClass( 'sticky-footer-fixed' );
		}
		if ( ! infoBar.isOnScreen() ) {
			sticky.addClass( 'sticky-save-warn' );
		} else {
			sticky.removeClass( 'sticky-save-warn' );
		}
	};
})( jQuery );

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists