scripts/menu.js
/**
 * Create the jQuery UI Slider for inputting the Route ETA
 */
Create the jQuery UI Slider for inputting the Route ETA
Create the jQuery UI Slider for inputting the Route ETA
function createETASlider() {
    var currentETA = $("#currentETA");
    var slider = $("#etaSlider");
    var max = 120;
    var min = 0;
    var startingVal = 0;
    var slideCB = function (event, ui) {
        if (ui.value == 0)
            currentETA.html("Real Time");
        else if (ui.value == 1)
            currentETA.html(ui.value + " min");
        else
            currentETA.html(ui.value + " mins");
    }
    createSlider(slider, max, min, startingVal, slideCB);
}
function createETASlider ( ) { var currentETA = $ ( "#currentETA" ) ; var slider = $ ( "#etaSlider" ) ; var max = 120 ; var min = 0 ; var startingVal = 0 ; var slideCB = function ( event , ui ) { if ( ui . value == 0 ) currentETA . html ( "Real Time" ) ; else if ( ui . value == 1 ) currentETA . html ( ui . value + " min" ) ; else currentETA . html ( ui . value + " mins" ) ; } createSlider ( slider , max , min , startingVal , slideCB ) ; }
Create the jQuery UI Slider for inputting the Route ETA
Create the jQuery UI Slider for inputting the Route ETA