PATH:
home
/
lab2454c
/
foreclass.com
/
wp-content
/
plugins
/
ocean-elementor-widgets
/
assets
/
js
( function( $ ) { var WidgetoewSearchHandler = function( $scope, $ ) { var $search = $scope; function oewAjaxSearch( e ) { var $ajaxurl = $search.find( '.oew-search-wrap' ).data( 'ajaxurl' ), $searchResults = $search.find( '.oew-search-results' ), $loadingSpinner = $search.find( '.oew-search-wrap .oew-ajax-loading' ); $.ajax( { type: 'post', url : $ajaxurl, data: { action: 'oew_ajax_search', search: e }, beforeSend: function() { $searchResults.slideUp( 200 ); setTimeout( function() { $loadingSpinner.fadeIn( 50 ); }, 150 ); }, success: function( result ) { if ( result === 0 || result == '0' ) { result = ''; } else { $searchResults.html( result ); } }, complete: function() { $loadingSpinner.fadeOut( 200 ); setTimeout( function() { $searchResults.slideDown( 400 ).addClass( 'filled' ); }, 200 ); } } ); } $search.find( '.oew-ajax-search input.field' ).on( 'keyup', function() { var $searchValue = $( this ).val(), $lastSearchValue = '', $searchTimer = null; clearTimeout( $searchTimer ); if ( $lastSearchValue != $.trim( $searchValue ) && $searchValue.length >= 3 ) { $searchTimer = setTimeout( function() { oewAjaxSearch( $searchValue ); }, 400); } } ); $( document ).on( 'click', function() { $( '.oew-search-results.filled' ).slideUp( 200 ); } ).on( 'click', '.oew-ajax-search, .oew-search-results', function( e ) { e.stopPropagation(); } ).on( 'click', '.oew-ajax-search', function() { $( this ).parent().find( '.oew-search-results.filled' ).slideDown( 400 ); } ); }; // Make sure we run this code under Elementor $( window ).on( 'elementor/frontend/init', function() { elementorFrontend.hooks.addAction( 'frontend/element_ready/oew-search.default', WidgetoewSearchHandler ); } ); } )( 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]