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-alert-widget.js
( function( $ ) {
    /**
     * @param $scope The Widget wrapper element as a jQuery element
     * @param $ The jQuery alias
     */
    var WidgetCTAlertHandler = function( $scope, $ ) {
        $scope.find(".ct-alert .ct-alert-dismiss").on("click", function(e){
            $(this).parents(".ct-alert").fadeOut(400);
        });
    };

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