PATH:
home
/
lab2454c
/
baas.elementalrock.com
/
wp-content
/
plugins
/
ocean-elementor-widgets
/
assets
/
js
( function( $ ) { var WidgetoewSearchIconHandler = function( $scope, $ ) { var $search = $scope; // Drop Down if ( $search.find( '.oew-search-icon-dropdown' ).length ) { var $icon = $search.find( '.oew-dropdown-link' ), $form = $search.find( '.oew-search-dropdown' ); $icon.click( function( event ) { // Display search form $form.fadeToggle( 'fast' ); // Active menu item $j( this ).parent().toggleClass( 'active' ); // Focus $form.find( 'input.field' ).focus(); // Return false return false; } ); // Close on doc click $j( document ).on( 'click', function( event ) { if ( ! $j( event.target ).closest( '.oew-search-dropdown' ).length ) { $icon.parent().removeClass( 'active' ); $form.fadeOut( 'fast' ); } } ); } // Overlay if ( $search.find( '.oew-search-icon-overlay' ).length ) { var $link = $search.find( 'a.oew-overlay-link' ), $close = $search.find( 'a.oew-search-overlay-close' ), $overlay = $search.find( '.oew-search-overlay' ); if ( $link.length ) { $link.on( 'click', function( e ) { e.preventDefault(); $overlay.addClass( 'active' ); $overlay.fadeIn( 200 ); setTimeout( function() { $j( 'html' ).css( 'overflow', 'hidden' ); }, 400); } ); } $close.on( 'click', function( e ) { e.preventDefault(); $overlay.removeClass( 'active' ); $overlay.fadeOut( 200 ); setTimeout( function() { $j( 'html' ).css( 'overflow', 'visible' ); }, 400); } ); $link.on( 'click', function() { $overlay.find( 'input' ).focus(); } ); // Move the modal to the footer $overlay.appendTo( 'body' ); // Add class when the search input is not empty $overlay.find( 'form' ).each( function() { var form = $j( this ), listener = form.find( 'input' ), $label = form.find( 'label' ); if ( listener.val().length ) { form.addClass( 'search-filled' ); } listener.on( 'keyup blur', function() { if ( listener.val().length > 0 ) { form.addClass( 'search-filled' ); } else { form.removeClass( 'search-filled' ); } } ); } ); } }; // Make sure we run this code under Elementor $( window ).on( 'elementor/frontend/init', function() { elementorFrontend.hooks.addAction( 'frontend/element_ready/oew-search-icon.default', WidgetoewSearchIconHandler ); } ); } )( jQuery );
[-] scroll-up.js
[edit]
[-] appear.js
[edit]
[-] off-canvas.js
[edit]
[-] member.min.js
[edit]
[-] alert.min.js
[edit]
[-] typed.min.js
[edit]
[-] navbar.js
[edit]
[-] hotspots.js
[edit]
[-] asPieProgress.min.js
[edit]
[-] blog-grid.js
[edit]
[-] hotspots.min.js
[edit]
[+]
..
[-] modal.js
[edit]
[-] blog-grid.min.js
[edit]
[-] instagram.js
[edit]
[-] twentytwenty.js
[edit]
[-] countdown.min.js
[edit]
[-] woo-slider.min.js
[edit]
[-] modal.min.js
[edit]
[-] google-map.min.js
[edit]
[-] image-comparison.js
[edit]
[-] blog-carousel.js
[edit]
[-] search.min.js
[edit]
[-] image-comparison.min.js
[edit]
[-] skillbar.js
[edit]
[-] event.move.js
[edit]
[-] instagram.min.js
[edit]
[-] skillbar.min.js
[edit]
[-] toggle.js
[edit]
[-] tabs.js
[edit]
[-] circle-progress.min.js
[edit]
[-] accordion.js
[edit]
[-] accordion.min.js
[edit]
[-] morphext.min.js
[edit]
[-] alert.js
[edit]
[-] navbar.min.js
[edit]
[-] morphext.js
[edit]
[-] search.js
[edit]
[-] countdown.js
[edit]
[-] image-gallery.js
[edit]
[-] off-canvas.min.js
[edit]
[-] appear.min.js
[edit]
[-] isotope.min.js
[edit]
[-] tooltip.min.js
[edit]
[-] newsletter.min.js
[edit]
[-] query-post.js
[edit]
[-] event.move.min.js
[edit]
[-] query-post.min.js
[edit]
[-] member.js
[edit]
[-] search-icon.js
[edit]
[-] slick.js
[edit]
[-] woo-slider.js
[edit]
[-] isotope.js
[edit]
[-] blog-carousel.min.js
[edit]
[-] tabs.min.js
[edit]
[-] asPieProgress.js
[edit]
[-] circle-progress.js
[edit]
[-] image-gallery.min.js
[edit]
[-] twentytwenty.min.js
[edit]
[-] search-icon.min.js
[edit]
[-] toggle.min.js
[edit]
[-] google-map.js
[edit]
[-] scroll-up.min.js
[edit]
[-] typed.js
[edit]
[-] newsletter.js
[edit]
[-] tooltip.js
[edit]