%PDF- %PDF-
Direktori : /var/softaculous/sitepad/editor/site-data/plugins/kkart-pro/assets/js/frontend/ |
Current File : //var/softaculous/sitepad/editor/site-data/plugins/kkart-pro/assets/js/frontend/price-slider.min.js |
jQuery(function(o){return"undefined"!=typeof kkart_price_slider_params&&(o(document.body).bind("price_slider_create price_slider_slide",function(e,r,i){o(".price_slider_amount span.from").html(accounting.formatMoney(r,{symbol:kkart_price_slider_params.currency_format_symbol,decimal:kkart_price_slider_params.currency_format_decimal_sep,thousand:kkart_price_slider_params.currency_format_thousand_sep,precision:kkart_price_slider_params.currency_format_num_decimals,format:kkart_price_slider_params.currency_format})),o(".price_slider_amount span.to").html(accounting.formatMoney(i,{symbol:kkart_price_slider_params.currency_format_symbol,decimal:kkart_price_slider_params.currency_format_decimal_sep,thousand:kkart_price_slider_params.currency_format_thousand_sep,precision:kkart_price_slider_params.currency_format_num_decimals,format:kkart_price_slider_params.currency_format})),o(document.body).trigger("price_slider_updated",[r,i])}),e(),void("undefined"!=typeof wp&&wp.customize&&wp.customize.selectiveRefresh&&wp.customize.widgetsPreview&&wp.customize.widgetsPreview.WidgetPartial&&wp.customize.selectiveRefresh.bind("partial-content-rendered",function(){e()})));function e(){o("input#min_price, input#max_price").hide(),o(".price_slider, .price_label").show();var e=o(".price_slider_amount #min_price").data("min"),r=o(".price_slider_amount #max_price").data("max"),i=o(".price_slider_amount").data("step")||1,c=o(".price_slider_amount #min_price").val(),a=o(".price_slider_amount #max_price").val();o(".price_slider:not(.ui-slider)").slider({range:!0,animate:!0,min:e,max:r,step:i,values:[c,a],create:function(){o(".price_slider_amount #min_price").val(c),o(".price_slider_amount #max_price").val(a),o(document.body).trigger("price_slider_create",[c,a])},slide:function(e,r){o("input#min_price").val(r.values[0]),o("input#max_price").val(r.values[1]),o(document.body).trigger("price_slider_slide",[r.values[0],r.values[1]])},change:function(e,r){o(document.body).trigger("price_slider_change",[r.values[0],r.values[1]])}})}});