function renderUVI(uvIndex) {
    $("#jumboUV").text(uvIndex);
    $("#jumboUV").removeClass("bg-danger bg-primary bg-success");
    if ((uvIndex >= 0) && (uvIndex < 3)) {
        $("#jumboUV").addClass("bg-success");
    } else if ((uvIndex >= 3) && (uvIndex < 6)) {
        $("#jumboUV").addClass("bg-warning");
    } else if ((uvIndex >= 6) && (uvIndex < 8)) {
        $("#jumboUV").addClass("bg-warning");
    } else if ((uvIndex >= 8) && (uvIndex < 11)) {
        $("#jumboUV").addClass("bg-danger");
    } else {
        $("#jumboUV").addClass("bg-primary");
    }
}
// Functino to display UVI in jumbotron
Functino to display UVI in jumbotron
Functino to display UVI in jumbotron
function renderUVI(uvIndex) {
    $("#jumboUV").text(uvIndex);
    $("#jumboUV").removeClass("bg-danger bg-primary bg-success");
    if ((uvIndex >= 0) && (uvIndex < 3)) {
        $("#jumboUV").addClass("bg-success");
    } else if ((uvIndex >= 3) && (uvIndex < 6)) {
        $("#jumboUV").addClass("bg-warning");
    } else if ((uvIndex >= 6) && (uvIndex < 8)) {
        $("#jumboUV").addClass("bg-warning");
    } else if ((uvIndex >= 8) && (uvIndex < 11)) {
        $("#jumboUV").addClass("bg-danger");
    } else {
        $("#jumboUV").addClass("bg-primary");
    }
}
function renderUVI ( uvIndex ) { $ ( "#jumboUV" ) . text ( uvIndex ) ; $ ( "#jumboUV" ) . removeClass ( "bg-danger bg-primary bg-success" ) ; if ( ( uvIndex >= 0 ) && ( uvIndex < 3 ) ) { $ ( "#jumboUV" ) . addClass ( "bg-success" ) ; } else if ( ( uvIndex >= 3 ) && ( uvIndex < 6 ) ) { $ ( "#jumboUV" ) . addClass ( "bg-warning" ) ; } else if ( ( uvIndex >= 6 ) && ( uvIndex < 8 ) ) { $ ( "#jumboUV" ) . addClass ( "bg-warning" ) ; } else if ( ( uvIndex >= 8 ) && ( uvIndex < 11 ) ) { $ ( "#jumboUV" ) . addClass ( "bg-danger" ) ; } else { $ ( "#jumboUV" ) . addClass ( "bg-primary" ) ; } }
Functino to display UVI in jumbotron
Functino to display UVI in jumbotron