function updateMillisecondsPerDay() {
        var inputValue = document.getElementById('millisecondsPerDay').value,
            info  = document.getElementById('millisecondsPerDayInfo'),
            millisecondsPerDay = parseInt(inputValue, 10),
            secondsPerDay = millisecondsPerDay / 1000,
            html = '1 Earth day = ';

        if (secondsPerDay < 1) {
            html += millisecondsPerDay + ' milliseconds';
        }
        else {
            html += (secondsPerDay + ' ') + (secondsPerDay > 1 ? 'seconds' : 'second');
        }

        info.innerHTML = html;
    }
/**
     * Updates the value displayed to users when they change the number of milliseconds per day.
     * @method updateMillisecondsPerDay
     */
Updates the value displayed to users when they change the number of milliseconds per day.
Updates the value displayed to users when they change the number of milliseconds per day .
function updateMillisecondsPerDay() {
        var inputValue = document.getElementById('millisecondsPerDay').value,
            info  = document.getElementById('millisecondsPerDayInfo'),
            millisecondsPerDay = parseInt(inputValue, 10),
            secondsPerDay = millisecondsPerDay / 1000,
            html = '1 Earth day = ';
        if (secondsPerDay < 1) {
            html += millisecondsPerDay + ' milliseconds';
        }
        else {
            html += (secondsPerDay + ' ') + (secondsPerDay > 1 ? 'seconds' : 'second');
        }
        info.innerHTML = html;
    }
function updateMillisecondsPerDay ( ) { var inputValue = document . getElementById ( 'millisecondsPerDay' ) . value , info = document . getElementById ( 'millisecondsPerDayInfo' ) , millisecondsPerDay = parseInt ( inputValue , 10 ) , secondsPerDay = millisecondsPerDay / 1000 , html = '1 Earth day = ' ; if ( secondsPerDay < 1 ) { html += millisecondsPerDay + ' milliseconds' ; } else { html += ( secondsPerDay + ' ' ) + ( secondsPerDay > 1 ? 'seconds' : 'second' ) ; } info . innerHTML = html ; }
Updates the value displayed to users when they change the number of milliseconds per day.
Updates the value displayed to users when they change the number of milliseconds per day .