scripts/aiv_ui.js
/**
     * @function restrictUIInputsNumRange - restrict the threshold values
     */
@function restrictUIInputsNumRange - restrict the threshold values
@function restrictUIInputsNumRange - restrict the threshold values
function restrictUIInputsNumRange() {
        function restrictRRange (event){
            let value = Number(event.target.value);
            if ( value < -1.0){ event.target.value = -1.0;}
            else if (value > 1.0) {event.target.value = 1.0;}
        }
        document.getElementById('PPPICorrThreshold').addEventListener('input', restrictRRange);
        document.getElementById('EPPICorrThreshold').addEventListener('input', restrictRRange);
        document.getElementById('PPPIConfThreshold').addEventListener('input', function(event){
            let value = Number(event.target.value);
            if ( value < -0){ event.target.value = 0;}
            else if (value > 90) {event.target.value = 90;}
        });
    }
function restrictUIInputsNumRange ( ) { function restrictRRange ( event ) { let value = Number ( event . target . value ) ; if ( value < - 1.0 ) { event . target . value = - 1.0 ; } else if ( value > 1.0 ) { event . target . value = 1.0 ; } } document . getElementById ( 'PPPICorrThreshold' ) . addEventListener ( 'input' , restrictRRange ) ; document . getElementById ( 'EPPICorrThreshold' ) . addEventListener ( 'input' , restrictRRange ) ; document . getElementById ( 'PPPIConfThreshold' ) . addEventListener ( 'input' , function ( event ) { let value = Number ( event . target . value ) ; if ( value < - 0 ) { event . target . value = 0 ; } else if ( value > 90 ) { event . target . value = 90 ; } } ) ; }
@function restrictUIInputsNumRange - restrict the threshold values
@function restrictUIInputsNumRange - restrict the threshold values