![]() Server : LiteSpeed System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : claqxcrl ( 523) PHP Version : 8.1.32 Disable Function : NONE Directory : /home/claqxcrl/confenda.com/wp-content/themes/the-conference/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(document).on('input change', 'input[type=range]', function() { jQuery( this ).closest( 'label' ).find( '.range_value .value' ).html(jQuery(this).val()); }); // Handle the reset button jQuery( '.slider-reset' ).on( '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() ); }); } });