403Webshell
Server IP : 87.98.154.146  /  Your IP : 216.73.216.165
Web Server : Apache
System : Linux webm004.cluster126.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User : ohklomafyi ( 52085)
PHP Version : 7.4.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/ohklomafyi/www/wp-content/plugins/ooohboi-steroids-for-elementor/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/ohklomafyi/www/wp-content/plugins/ooohboi-steroids-for-elementor/assets/js/searchcop.js
'use strict';

( function ( $, w ) {
    
    var $window = $( w ); 

	function debounce(func, wait, immediate) {
		var timeout;
		return function() {
			var context = this, args = arguments;
			var later = function() {
				timeout = null;
				if (!immediate) func.apply(context, args);
			};
			var callNow = immediate && !timeout;
			clearTimeout(timeout);
			timeout = setTimeout(later, wait);
			if (callNow) func.apply(context, args);
		};
	}

    $window.on( 'elementor/frontend/init', function() {

        var ModuleHandler = elementorModules.frontend.handlers.Base, 
        SearchCop; 

        SearchCop = ModuleHandler.extend( {

            onInit: function() {
                ModuleHandler.prototype.onInit.apply( this, arguments );
                if( this.isSearchCop() ) {
                    this.runSearchCop();
                } 
            },

            isSearchCop: function() {
                return ( this.getElementSettings( '_ob_searchcop_use_it' ) === 'yes' );
            }, 

            onElementChange: debounce( function( changedProp ) {

                if( changedProp === '_ob_searchcop_srch_options' ) this.runSearchCop();

            }, 900 ), 

            runSearchCop: function() {

                var search_cop_val = this.getElementSettings( '_ob_searchcop_srch_options' );

                if( 'post' === search_cop_val || 'page' === search_cop_val || 'product' === search_cop_val ) {
                    var this_input_wrapper = this.$element.find( '.elementor-search-form__container' );
                    if( ! this_input_wrapper.length ) return;
                    var param_input = '<input type="hidden" name="post_type" value="' + search_cop_val + '" />';
                    this_input_wrapper.prepend( param_input );
                }

            }
            
        } );

        elementorFrontend.hooks.addAction( 'frontend/element_ready/search-form.default', function( $scope ) {
            elementorFrontend.elementsHandler.addHandler( SearchCop, { $element: $scope } );
        } );

    } ); 


} ( jQuery, window ) );

Youez - 2016 - github.com/yon3zu
LinuXploit