function updateValueOfSliders(globalSlider, slidersToUpdate) {
        var value = document.getElementById(globalSlider).value,
            currentSlider;

        for (var i = 0; i < slidersToUpdate.length; i++) {
            currentSlider = document.getElementById(slidersToUpdate[i]);
            currentSlider.value = value;
        }
    }
/**
     * Updates the value of all the given sliders. This way we can have one 'master' slider that controls all the others.
     * @method updateValueOfSliders
     * @param  {String} globalSlider    ID of the master slider.
     * @param  {array} slidersToUpdate Array of IDs of the sliders that should be updated when the master is updated.
     */
Updates the value of all the given sliders. This way we can have one 'master' slider that controls all the others.
@method updateValueOfSliders
@param  {String} globalSlider    ID of the master slider.
@param  {array} slidersToUpdate Array of IDs of the sliders that should be updated when the master is updated.
Updates the value of all the given sliders . This way we can have one ' master ' slider that controls all the others . @method updateValueOfSliders @param { String } globalSlider ID of the master slider . @param { array } slidersToUpdate Array of IDs of the sliders that should be updated when the master is updated .
function updateValueOfSliders(globalSlider, slidersToUpdate) {
        var value = document.getElementById(globalSlider).value,
            currentSlider;
        for (var i = 0; i < slidersToUpdate.length; i++) {
            currentSlider = document.getElementById(slidersToUpdate[i]);
            currentSlider.value = value;
        }
    }
function updateValueOfSliders ( globalSlider , slidersToUpdate ) { var value = document . getElementById ( globalSlider ) . value , currentSlider ; for ( var i = 0 ; i < slidersToUpdate . length ; i ++ ) { currentSlider = document . getElementById ( slidersToUpdate [ i ] ) ; currentSlider . value = value ; } }
Updates the value of all the given sliders.
Updates the value of all the given sliders .