PluginProbe ʕ •ᴥ•ʔ
Redux Framework / 4.3.4
Redux Framework v4.3.4
4.5.13 trunk 4.3.0 4.3.1 4.3.10 4.3.11 4.3.12 4.3.13 4.3.14 4.3.15 4.3.16 4.3.17 4.3.18 4.3.19 4.3.2 4.3.20 4.3.21 4.3.22 4.3.24 4.3.25 4.3.26 4.3.3 4.3.4 4.3.5 4.3.6 4.3.7 4.3.8 4.3.9 4.4.0 4.4.1 4.4.10 4.4.11 4.4.12 4.4.13 4.4.14 4.4.15 4.4.16 4.4.17 4.4.18 4.4.2 4.4.3 4.4.4 4.4.5 4.4.6 4.4.7 4.4.8 4.4.9 4.5.0 4.5.1 4.5.10 4.5.11 4.5.2 4.5.3 4.5.4 4.5.6 4.5.7 4.5.8 4.5.9
redux-framework / redux-core / assets / js / redux / sticky-info.js
redux-framework / redux-core / assets / js / redux Last commit date
ajax-save.js 5 years ago color-validate.js 5 years ago expand-options.js 5 years ago index.php 5 years ago init-events.js 4 years ago init-fields.js 5 years ago main.js 4 years ago notices.js 5 years ago qtip.js 5 years ago redux-change.js 5 years ago redux-hook.js 5 years ago required.js 5 years ago sticky-info.js 5 years ago tab-check.js 5 years ago
sticky-info.js
34 lines
1 (function( $ ) {
2 'use strict';
3
4 $.redux = $.redux || {};
5
6 $.redux.stickyInfo = function() {
7 var stickyWidth = $( '.redux-main' ).innerWidth() - 20;
8 var $width = $( '#redux-sticky' ).offset().left;
9
10 $( '.redux-save-warn' ).css( 'left', $width + 'px' );
11
12 if ( ! $( '#info_bar' ).isOnScreen() && ! $( '#redux-footer-sticky' ).isOnScreen() ) {
13 $( '#redux-footer' ).css(
14 { position: 'fixed', bottom: '0', width: stickyWidth, right: 21 }
15 );
16
17 $( '#redux-footer' ).addClass( 'sticky-footer-fixed' );
18 $( '#redux-sticky-padder' ).show();
19 } else {
20 $( '#redux-footer' ).css(
21 { background: '#eee', position: 'inherit', bottom: 'inherit', width: 'inherit' }
22 );
23
24 $( '#redux-sticky-padder' ).hide();
25 $( '#redux-footer' ).removeClass( 'sticky-footer-fixed' );
26 }
27 if ( ! $( '#info_bar' ).isOnScreen() ) {
28 $( '#redux-sticky' ).addClass( 'sticky-save-warn' );
29 } else {
30 $( '#redux-sticky' ).removeClass( 'sticky-save-warn' );
31 }
32 };
33 })( jQuery );
34