D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
raptqcnr
/
www
/
wp-content
/
themes
/
woodmart
/
js
/
scripts
/
wc
/
Filename :
woocommercePriceSlider.min.js
back
Copy
!function(s){woodmartThemeModule.$document.on("wdBackHistory wdShopPageInit",function(){woodmartThemeModule.woocommercePriceSlider()}),woodmartThemeModule.woocommercePriceSlider=function(){var e=s(".price_slider_amount"),a=s(".price_slider_amount #min_price"),i=s(".price_slider_amount #max_price"),r=s(".products"),t=new URL(window.location.href);if("undefined"==typeof woocommerce_price_slider_params||a.length<1||!s.fn.slider)return!1;var o,d,n,c,m=s(".price_slider");void 0===m.slider("instance")&&(s("input#min_price, input#max_price").hide(),s(".price_slider, .price_label").show(),o=parseInt(a.data("min")),d=parseInt(i.data("max")),e=e.data("step")||1,n=parseInt(t.searchParams.has("min_price")?t.searchParams.get("min_price"):o,10),c=parseInt(t.searchParams.has("max_price")?t.searchParams.get("max_price"):d,10),r.attr("data-min_price")&&0<r.attr("data-min_price").length&&(n=parseInt(r.attr("data-min_price"),10)),r.attr("data-max_price")&&0<r.attr("data-max_price").length&&(c=parseInt(r.attr("data-max_price"),10)),m.slider({range:!0,animate:!0,min:o,max:d,step:e,values:[n,c],create:function(){a.val(n),i.val(c),woodmartThemeModule.$body.trigger("price_slider_create",[n,c])},slide:function(e,r){a.val(r.values[0]),i.val(r.values[1]),woodmartThemeModule.$body.trigger("price_slider_slide",[r.values[0],r.values[1]])},change:function(e,r){woodmartThemeModule.$body.trigger("price_slider_change",[r.values[0],r.values[1]])}}),setTimeout(function(){woodmartThemeModule.$body.trigger("price_slider_create",[n,c]),1<m.find(".ui-slider-range").length&&m.find(".ui-slider-range").first().remove()},10))},s(document).ready(function(){woodmartThemeModule.woocommercePriceSlider()})}(jQuery);