Файловый менеджер - Редактировать - /home/avadvi5/public_html/wp-content/themes/code4rest/inc/customizer/react/src/common/range.js
Ðазад
const { RangeControl, } = wp.components; const { useInstanceId, } = wp.compose; /** * Build the Measure controls * @returns {object} Measure settings. */ export default function Code4restRange( { label, onChange, value = '', className = '', step = 1, max = 100, min = 0, beforeIcon = '', help = '', } ) { const onChangInput = ( event ) => { if ( event.target.value === '' ) { onChange( undefined ); return; } const newValue = Number( event.target.value ); if ( newValue === '' ) { onChange( undefined ); return; } if ( min < -0.1 ) { if ( newValue > max ) { onChange( max ); } else if ( newValue < min && newValue !== '-' ) { onChange( min ); } else { onChange( newValue ); } } else { if ( newValue > max ) { onChange( max ); } else if ( newValue < -0.1 ) { onChange( min ); } else { onChange( newValue ); } } }; const id = useInstanceId( Code4restRange, 'inspector-code4rest-range' ); return [ onChange && ( <div className={ `components-base-control code4rest-range-control${ className ? ' ' + className : '' }` }> { label && ( <label htmlFor={ id } className="components-base-control__label">{ label }</label> ) } <div className={ 'code4rest-range-control-inner' }> <RangeControl className={ 'code4rest-range-control-range' } beforeIcon={ beforeIcon } value={ value } onChange={ ( newVal ) => onChange( newVal ) } min={ min } max={ max } step={ step } help={ help } withInputField={ false } /> <div className="components-base-control kt-range-number-input"> <div className="components-base-control__field"> <input value={ value } onChange={ onChangInput } min={ min } max={ max } id={ id } step={ step } type="number" className="components-text-control__input" /> </div> </div> </div> </div> ), ]; }
| ver. 1.1 | |
.
| PHP 8.3.30 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка