Submit
Path:
~
/
/
usr
/
local
/
sitepad
/
editor
/
site-data
/
plugins
/
kkart-pro
/
assets
/
js
/
frontend
/
File Content:
price-slider.js
/* global kkart_price_slider_params, accounting */ jQuery( function( $ ) { // kkart_price_slider_params is required to continue, ensure the object exists if ( typeof kkart_price_slider_params === 'undefined' ) { return false; } $( document.body ).bind( 'price_slider_create price_slider_slide', function( event, min, max ) { $( '.price_slider_amount span.from' ).html( accounting.formatMoney( min, { 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 } ) ); $( '.price_slider_amount span.to' ).html( accounting.formatMoney( max, { 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 } ) ); $( document.body ).trigger( 'price_slider_updated', [ min, max ] ); }); function init_price_filter() { $( 'input#min_price, input#max_price' ).hide(); $( '.price_slider, .price_label' ).show(); var min_price = $( '.price_slider_amount #min_price' ).data( 'min' ), max_price = $( '.price_slider_amount #max_price' ).data( 'max' ), step = $( '.price_slider_amount' ).data( 'step' ) || 1, current_min_price = $( '.price_slider_amount #min_price' ).val(), current_max_price = $( '.price_slider_amount #max_price' ).val(); $( '.price_slider:not(.ui-slider)' ).slider({ range: true, animate: true, min: min_price, max: max_price, step: step, values: [ current_min_price, current_max_price ], create: function() { $( '.price_slider_amount #min_price' ).val( current_min_price ); $( '.price_slider_amount #max_price' ).val( current_max_price ); $( document.body ).trigger( 'price_slider_create', [ current_min_price, current_max_price ] ); }, slide: function( event, ui ) { $( 'input#min_price' ).val( ui.values[0] ); $( 'input#max_price' ).val( ui.values[1] ); $( document.body ).trigger( 'price_slider_slide', [ ui.values[0], ui.values[1] ] ); }, change: function( event, ui ) { $( document.body ).trigger( 'price_slider_change', [ ui.values[0], ui.values[1] ] ); } }); } init_price_filter(); var hasSelectiveRefresh = ( 'undefined' !== typeof wp && wp.customize && wp.customize.selectiveRefresh && wp.customize.widgetsPreview && wp.customize.widgetsPreview.WidgetPartial ); if ( hasSelectiveRefresh ) { wp.customize.selectiveRefresh.bind( 'partial-content-rendered', function() { init_price_filter(); } ); } });
Submit
FILE
FOLDER
Name
Size
Permission
Action
add-payment-method.js
1079 bytes
0644
add-payment-method.min.js
721 bytes
0644
add-to-cart-variation.js
28543 bytes
0644
add-to-cart-variation.min.js
13600 bytes
0644
add-to-cart.js
5821 bytes
0644
add-to-cart.min.js
3073 bytes
0644
address-i18n.js
4955 bytes
0644
address-i18n.min.js
2618 bytes
0644
cart-fragments.js
5708 bytes
0644
cart-fragments.min.js
2989 bytes
0644
cart.js
15616 bytes
0644
cart.min.js
7509 bytes
0644
checkout.js
24797 bytes
0644
checkout.min.js
13875 bytes
0644
country-select.js
6187 bytes
0644
country-select.min.js
3298 bytes
0644
credit-card-form.js
612 bytes
0644
credit-card-form.min.js
542 bytes
0644
geolocation.js
2559 bytes
0644
geolocation.min.js
1334 bytes
0644
kkart.js
3237 bytes
0644
kkart.min.js
1963 bytes
0644
lost-password.js
159 bytes
0644
lost-password.min.js
132 bytes
0644
password-strength-meter.js
3807 bytes
0644
password-strength-meter.min.js
2024 bytes
0644
price-slider.js
2923 bytes
0644
price-slider.min.js
2035 bytes
0644
single-product.js
10359 bytes
0644
single-product.min.js
6272 bytes
0644
tokenization-form.js
3814 bytes
0644
tokenization-form.min.js
2227 bytes
0644
N4ST4R_ID | Naxtarrr