Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/www/wp-content/themes/dt-the7/inc/admin/assets/js/elementor/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/www/wp-content/themes/dt-the7/inc/admin/assets/js/elementor/wc-widget-preview.js
(function ($) {

    // Make sure you run this code under Elementor.
    $(window).on("elementor/frontend/init", function () {
        var carouselRefreshTimeout;
        var productNavRefreshTimeout;
        /*product image*/
        elementorEditorAddOnChangeHandler("the7-woocommerce-product-images:thumbs_width", refreshProduct);
        elementorEditorAddOnChangeHandler("the7-woocommerce-product-images:thumbs_items", refreshProduct);
        elementorEditorAddOnChangeHandler("the7-woocommerce-product-images:thumbs_spacing", refreshProduct);
        elementorEditorAddOnChangeHandler("the7-woocommerce-product-images:thumbs_preserve_ratio", refreshProduct);
        elementorEditorAddOnChangeHandler("the7-woocommerce-product-images:thumbs_side_ratio", refreshProduct);

        elementorEditorAddOnChangeHandler("the7-woocommerce-product-images:gallery_spacing", refreshProduct);
        elementorEditorAddOnChangeHandler("the7-woocommerce-product-images:gallery_image_border_width", refreshProduct);
        elementorEditorAddOnChangeHandler("the7-woocommerce-product-images:gallery_ratio", refreshProduct);
        elementorEditorAddOnChangeHandler("the7-woocommerce-product-images:gallery_preserve_ratio", refreshProduct);

        elementorEditorAddOnChangeHandler("the7-woocommerce-product-images:show_image_zoom", refreshProduct);

        /*product nav*/
        elementorEditorAddOnChangeHandler("the7-woocommerce-product-navigation:show_featured_image", refreshProductNav);
        elementorEditorAddOnChangeHandler("the7-woocommerce-product-navigation:item_preserve_ratio", refreshProductNav);
        elementorEditorAddOnChangeHandler("the7-woocommerce-product-navigation:item_ratio", refreshProductNav);

        function refreshProductNav(controlView, widgetView) {
            clearTimeout(productNavRefreshTimeout);
            var $widget = window.jQuery(widgetView.$el);
            var data = $widget.data('productNavigation');
            if (typeof data !== 'undefined') {
                productNavRefreshTimeout = setTimeout(function () {
                    data.refresh();
                }, 600);
            }
        }

        function refreshProduct(controlView, widgetView) {
            clearTimeout(carouselRefreshTimeout);
            var $widget = window.jQuery(widgetView.$el);
            var galleryData = $widget.data('productGallery');
            if (typeof galleryData !== 'undefined') {
                galleryData.clearPrecisionSizes();
                carouselRefreshTimeout = setTimeout(function () {
                    galleryData.refresh();
                }, 600);
            }
        }

        function elementorEditorAddOnChangeHandler(widgetType, handler) {
            widgetType = widgetType ? ":" + widgetType : "";
            elementor.channels.editor.on("change" + widgetType, handler);
        }
    });
})(jQuery);

Spamworldpro Mini