PATH:
home
/
lab2454c
/
baas.elementalrock.com
/
wp-content
/
themes
/
oceanwp
/
assets
/
js
/
core
var $j = jQuery.noConflict(); $j( document ).ready( function() { "use strict"; // Full Screen header menu oceanwpFullScreenMenu(); } ); /* ============================================== FULL SCREEN MENU ============================================== */ function oceanwpFullScreenMenu() { "use strict" var $siteHeader = $j( '#site-header.full_screen-header' ), $menuWrap = $j( '#site-header.full_screen-header #full-screen-menu' ), $menuBar = $j( '#site-header.full_screen-header .menu-bar' ), $customLogo = $j( '#site-logo.has-full-screen-logo' ); if ( $menuBar.length ) { // Open menu function var oceanwpFullScreenMenuOpen = function() { $siteHeader.addClass( 'nav-open' ); $menuBar.addClass( 'exit' ); $customLogo.addClass( 'opened' ); $menuWrap.addClass( 'active' ); $menuWrap.fadeIn( 200 ); var innerWidth = $j( 'html' ).innerWidth(); $j( 'html' ).css( 'overflow', 'hidden' ); var hiddenInnerWidth = $j( 'html' ).innerWidth(); $j( 'html' ).css( 'margin-right', hiddenInnerWidth - innerWidth ); } // Close menu function var oceanwpFullScreenMenuClose = function() { $siteHeader.removeClass( 'nav-open' ); $menuBar.removeClass( 'exit' ); $customLogo.removeClass( 'opened' ); $menuWrap.removeClass( 'active' ); $menuWrap.fadeOut( 200 ); $j( 'html' ).css( { 'overflow': '', 'margin-right': '' } ); $j( '#full-screen-menu #site-navigation ul > li.dropdown' ).removeClass( 'open-sub' ); $j( '#full-screen-menu #site-navigation ul.sub-menu' ).slideUp( 200 ); } $menuBar.on( 'click', function( e ) { e.preventDefault(); if ( ! $j( this ).hasClass( 'exit' ) ) { oceanwpFullScreenMenuOpen(); } else { oceanwpFullScreenMenuClose(); } } ); // Logic for open sub menus $j( '#full-screen-menu #site-navigation ul > li.dropdown > a > .text-wrap > span.nav-arrow, #full-screen-menu #site-navigation ul > li.dropdown > a[href="#"]' ).on( 'tap click', function() { if ( $j( this ).closest( 'li.dropdown' ).find( '> ul.sub-menu' ).is( ':visible' ) ) { $j( this ).closest( 'li.dropdown' ).removeClass( 'open-sub' ); $j( this ).closest( 'li.dropdown' ).find( '> ul.sub-menu' ).slideUp( 200 ); } else { $j( this ).closest( 'li.dropdown' ).addClass( 'open-sub' ); $j( this ).closest( 'li.dropdown' ).find( '> ul.sub-menu' ).slideDown( 200 ); } return false; } ); // Close menu if anchor link $j( '#full-screen-menu #site-navigation a.menu-link[href*="#"]:not([href="#"])' ).on( 'click', function() { oceanwpFullScreenMenuClose(); } ); } }
[-] fitvids.js
[edit]
[-] scrollTop.js
[edit]
[-] fixedFooter.js
[edit]
[-] customSelect.js
[edit]
[+]
..
[-] fullScreenMobile.js
[edit]
[-] headerReplaceSearch.js
[edit]
[-] superfish.js
[edit]
[-] dropDownSearch.js
[edit]
[-] matchHeight.js
[edit]
[-] scrollEffect.js
[edit]
[-] parallaxFooter.js
[edit]
[-] headerSearchForm.js
[edit]
[-] infiniteScroll.js
[edit]
[-] slick.js
[edit]
[-] isotope.js
[edit]
[-] verticalHeader.js
[edit]
[-] overlaySearch.js
[edit]
[-] dropDownMobile.js
[edit]
[-] fullScreenMenu.js
[edit]
[-] megaMenu.js
[edit]
[-] navNoClick.js
[edit]
[-] sidr.js
[edit]