hello
Server : Apache System : Linux webm006.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : chryzalihi ( 621211) PHP Version : 8.3.31 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl Directory : /home/chryzalihi/www/wp-contentOLD/themes/blossom-fashion/inc/custom-controls/slider/ |
wp.customize.controlConstructor['slider'] = wp.customize.Control.extend({
ready: function() {
'use strict';
var control = this,
value,
thisInput,
inputDefault,
changeAction;
// 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( '.range_value .value' ).text( value );
});
});
// Handle the reset button
jQuery( '.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( '.range_value .value' ).text( inputDefault );
});
if ( 'postMessage' === control.setting.transport ) {
changeAction = 'mousemove change';
} else {
changeAction = 'change';
}
// Save changes.
this.container.on( changeAction, 'input', function() {
control.setting.set( jQuery( this ).val() );
});
}
});