X7ROOT File Manager
Current Path:
/home/okeydcqc/okeyanueyiagu.com/wp-content/plugins/ocean-extra/assets/js
home
/
okeydcqc
/
okeyanueyiagu.com
/
wp-content
/
plugins
/
ocean-extra
/
assets
/
js
/
ðŸ“
..
📄
customSelect.js
(402 B)
📄
dropDownSearch.js
(1.53 KB)
📄
fitvids.js
(384 B)
📄
fixedFooter.js
(1.08 KB)
📄
fullScreenMenu.js
(2.1 KB)
📄
headerReplaceSearch.js
(3.17 KB)
📄
headerSearchForm.js
(829 B)
📄
infiniteScroll.js
(1.95 KB)
📄
isotope.js
(899 B)
📄
lightbox.js
(2.39 KB)
📄
matchHeight.js
(554 B)
📄
megaMenu.js
(3.01 KB)
📄
navNoClick.js
(414 B)
📄
oceanwp-plugin-install.js
(2.29 KB)
📄
overlaySearch.js
(1.36 KB)
📄
scrollEffect.js
(2.54 KB)
📄
scrollTop.js
(875 B)
📄
sidr.js
(3.8 KB)
📄
slick.js
(2.04 KB)
📄
superfish.js
(530 B)
ðŸ“
woo
Editing: megaMenu.js
var $j = jQuery.noConflict(), $window = $j( window ); $j( document ).ready( function() { "use strict"; // Mega menu oceanwpMegaMenu(); } ); /* ============================================== MEGA MENU ============================================== */ function oceanwpMegaMenu() { "use strict" // Mega menu in top bar menu $j( '#top-bar-nav .megamenu-li.full-mega' ).hover( function() { var topBar = $j( '#top-bar' ), menuWidth = topBar.width(), menuPosition = topBar.offset(), menuItemPosition = $j( this ).offset(), PositionLeft = menuItemPosition.left-menuPosition.left+1; $j( this ).find( '.megamenu' ).css( { left: '-'+PositionLeft+'px', width: menuWidth } ); } ); // Mega menu in principal menu $j( '#site-navigation .megamenu-li.full-mega' ).hover( function() { var siteHeader = $j( '#site-header-inner' ), menuWidth = siteHeader.width(), menuPosition = siteHeader.offset(), menuItemPosition = $j( this ).offset(), PositionLeft = menuItemPosition.left-menuPosition.left+1; if ( $j( '#site-header' ).hasClass( 'medium-header' ) ) { siteHeader = $j( '#site-navigation-wrap > .container' ), menuWidth = siteHeader.width(), menuPosition = siteHeader.offset(), PositionLeft = menuItemPosition.left-menuPosition.left+1; } $j( this ).find( '.megamenu' ).css( { left: '-'+PositionLeft+'px', width: menuWidth } ); } ); // Megamenu auto width $j( '.navigation .megamenu-li.auto-mega .megamenu' ).each( function() { var li = $j( this ).parent(); var liOffset = li.offset().left; var liOffsetTop = li.offset().top; var liWidth = $j( this ).parent().width(); var dropdowntMarginLeft = liWidth/2; var dropdownWidth = $j( this ).outerWidth(); var dropdowntLeft = liOffset - dropdownWidth/2; if ( dropdowntLeft < 0 ) { var left = liOffset - 10; dropdowntMarginLeft = 0; } else { var left = dropdownWidth/2; } if ( oceanwpLocalize.isRTL ) { $j( this ).css( { 'right': - left, 'marginRight': dropdowntMarginLeft } ); } else { $j( this ).css( { 'left': - left, 'marginLeft': dropdowntMarginLeft } ); } var dropdownRight = ( $window.width() ) - ( liOffset - left + dropdownWidth + dropdowntMarginLeft ); if ( dropdownRight < 0 ) { $j( this ).css( { 'left': 'auto', 'right': - ( $window.width() - liOffset - liWidth - 10 ) } ); } } ); }
Upload File
Create Folder