HOME


Mini Shell 1.0
DIR: /home/otwalrll/.trash/wp-content.1/themes/consultio/elementor/js/
Upload File :
Current File : /home/otwalrll/.trash/wp-content.1/themes/consultio/elementor/js/ct-particles.js
( function( $ ) {
    /**
     * @param $scope The Widget wrapper element as a jQuery element
     * @param $ The jQuery alias
     */
    var WidgetCTPartHandler = function( $scope, $ ) {
        
        setTimeout(function(){
            $('.elementor > .elementor-element').each(function () {
                var _el_particle = $(this).find(".ct-particles-js"),
                    _el_particle_remove = $(this).find(".elementor-widget-wrap .ct-particles-js"),
                    _row_particle = _el_particle.parents(".elementor-container");
                _row_particle.before(_el_particle.clone());
                _el_particle_remove.remove();
            });
        }, 100);

        setTimeout(function(){
            $('#ct-particles-js').particleground({
                dotColor: '#fff',
                lineColor: '#fff',
                parallax: false
            });
        }, 300);

    };

    // Make sure you run this code under Elementor.
    $( window ).on( 'elementor/frontend/init', function() {
        elementorFrontend.hooks.addAction( 'frontend/element_ready/ct_particles.default', WidgetCTPartHandler );
    } );
} )( jQuery );