PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/flavoredfog.co.uk/wp-content/plugins/wp-product-review/assets/js/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : //home/trave494/flavoredfog.co.uk/wp-content/plugins/wp-product-review/assets/js/main.js

/* jshint ignore:start */
/**
 * Main JavaScript File
 */

(function($, wppr_config){

    $(document).ready(function(){
        initAll();
    });

    function initAll(){
        $(".wppr-comment-meta-slider").each(function () {
            var min = 0;
            var max = 100;
            var step = wppr_config.scale / 2;
            if($(this).parent(".wppr-comment-form-meta").hasClass('rtl')){
                min = -100;
                max = 0;
            }
            var comm_meta_input = $(this).parent(".wppr-comment-form-meta").children("input");
            $(this).slider({
                min: min,
                max: max,
                value: 0,
                step: step,
                slide: function (event, ui) {
                    $(comm_meta_input).val(Math.abs(ui.value) / wppr_config.scale);
                }
            });
        });

        // Check if review image width is bigger than height.
        if ( $( '.wppr-template-2' ).length > 0 ) {
            var reviewImage = $( '.wppr-review-product-image' );
            if ( reviewImage.length > 0 ) {
                if ( reviewImage.find('img').width() > reviewImage.find('img').height() ) {
                    reviewImage.addClass('wppr-review-product-image-full');
                }
            }
        }
    }

})(jQuery, wppr_config);