X7ROOT File Manager
Current Path:
/home/okeydcqc/public_html/wp-content/plugins/ocean-stick-anything/assets/js
home
/
okeydcqc
/
public_html
/
wp-content
/
plugins
/
ocean-stick-anything
/
assets
/
js
/
ðŸ“
..
📄
main.js
(1.51 KB)
📄
main.min.js
(788 B)
📄
stick-anythings.js
(22.96 KB)
📄
stick-anythings.min.js
(6.06 KB)
📄
sticky-kit.js
(8.64 KB)
📄
sticky-kit.min.js
(3.2 KB)
ðŸ“
vendors
Editing: main.js
var $j = jQuery.noConflict(); $j( document ).on( 'ready', function() { oceanwpStickAnything(); } ); // On resize $j( window ).resize( function() { oceanwpStickAnything(); } ); /* ============================================== STICK ANYTHING ============================================== */ function oceanwpStickAnything() { "use strict" var $offset = 0, $body = $j( 'body' ), $stickOffset = oceanwpLocalize.isOffset, $adminBar = $j( '#wpadminbar' ), $stickyTopBar = $j( '#top-bar-wrap' ), $stickyHeader = $j( '#site-header' ); // If custom offset if ( $stickOffset ) { $body.attr('data-offset', parseInt($stickOffset)); $offset = parseInt($offset) + parseInt($stickOffset); } // Offset adminbar if ( $adminBar.length && $j( window ).width() > 600 ) { $offset = $offset + $adminBar.outerHeight(); } // Offset sticky topbar if ( true == oceanwpLocalize.hasStickyTopBar ) { $offset = $offset + $stickyTopBar.outerHeight(); } // Offset sticky header if ( $j( '#site-header' ).hasClass( 'fixed-scroll' ) && ! $j( '#site-header' ).hasClass( 'vertical-header' ) ) { $offset = $offset + $stickyHeader.outerHeight(); } $j( oceanwpLocalize.stickElements ).stick_in_parent( { offset_top: $offset, } ); // If un-stick if ( oceanwpLocalize.unStick && $j( window ).width() <= oceanwpLocalize.unStick ) { $j( oceanwpLocalize.stickElements ).trigger( 'sticky_kit:detach' ); } }
Upload File
Create Folder