function initializeSliderComponents() {
  const sliderComponents = document.querySelectorAll('.rev-Slider')

  for (let i = 0; i < sliderComponents.length; i++) {
    const sliderComponent = sliderComponents[i]

    const slider = sliderComponent.querySelector('.rev-Slider-range')
    const input = sliderComponent.querySelector('.rev-Slider-input')

    slider.addEventListener('input', () => {
      input.value = slider.value
    })

    input.addEventListener('input', () => {
      slider.value = input.value
    })
  }
}
/**
 * Initializes all slider components on page.
 * @returns {void}
 */
Initializes all slider components on page.
@returns {void}
Initializes all slider components on page . @returns { void }
function initializeSliderComponents() {
  const sliderComponents = document.querySelectorAll('.rev-Slider')
  for (let i = 0; i < sliderComponents.length; i++) {
    const sliderComponent = sliderComponents[i]
    const slider = sliderComponent.querySelector('.rev-Slider-range')
    const input = sliderComponent.querySelector('.rev-Slider-input')
    slider.addEventListener('input', () => {
      input.value = slider.value
    })
    input.addEventListener('input', () => {
      slider.value = input.value
    })
  }
}
function initializeSliderComponents ( ) { const sliderComponents = document . querySelectorAll ( '.rev-Slider' ) for ( let i = 0 ; i < sliderComponents . length ; i ++ ) { const sliderComponent = sliderComponents [ i ] const slider = sliderComponent . querySelector ( '.rev-Slider-range' ) const input = sliderComponent . querySelector ( '.rev-Slider-input' ) slider . addEventListener ( 'input' , ( ) => { input . value = slider . value } ) input . addEventListener ( 'input' , ( ) => { slider . value = input . value } ) } }
Initializes all slider components on page.
Initializes all slider components on page .