function renderMain(weatherData) {
    $("#currentDisplay").empty();

    var cityName = $("<h2>").attr("class", "pt-4 mr-3");
    cityName.text(weatherData.name);
    $("#currentDisplay").append(cityName);

    var date = moment.unix(weatherData.dt).format("MM/DD/YYYY");
    $("#jumboDate").text(date);
    var dateDisplay = $("<h2>").attr("class", "pt-4 mr-2");
    dateDisplay.text(date);
    $("#currentDisplay").append(dateDisplay);

    var icon = weatherData.weather[0].icon;
    var alt = weatherData.weather[0].description;
    var iconURL = "http://openweathermap.org/img/wn/" + icon + "@2x.png";
    var currentImage = $("<img>").attr("src", iconURL).attr("alt", alt);
    $("#currentDisplay").append(currentImage);

    var temp = weatherData.main.temp;
    $("#jumboTemp").html(temp + "&deg;");

    var humidity = weatherData.main.humidity + "%";
    $("#jumboHumid").text(humidity);

    var wind = weatherData.wind.speed + " MPH";
    $("#jumboWind").text(wind);
}
// Function to display current weather in jumbotron
Function to display current weather in jumbotron
Function to display current weather in jumbotron
function renderMain(weatherData) {
    $("#currentDisplay").empty();
    var cityName = $("<h2>").attr("class", "pt-4 mr-3");
    cityName.text(weatherData.name);
    $("#currentDisplay").append(cityName);
    var date = moment.unix(weatherData.dt).format("MM/DD/YYYY");
    $("#jumboDate").text(date);
    var dateDisplay = $("<h2>").attr("class", "pt-4 mr-2");
    dateDisplay.text(date);
    $("#currentDisplay").append(dateDisplay);
    var icon = weatherData.weather[0].icon;
    var alt = weatherData.weather[0].description;
    var iconURL = "http://openweathermap.org/img/wn/" + icon + "@2x.png";
    var currentImage = $("<img>").attr("src", iconURL).attr("alt", alt);
    $("#currentDisplay").append(currentImage);
    var temp = weatherData.main.temp;
    $("#jumboTemp").html(temp + "&deg;");
    var humidity = weatherData.main.humidity + "%";
    $("#jumboHumid").text(humidity);
    var wind = weatherData.wind.speed + " MPH";
    $("#jumboWind").text(wind);
}
function renderMain ( weatherData ) { $ ( "#currentDisplay" ) . empty ( ) ; var cityName = $ ( "<h2>" ) . attr ( "class" , "pt-4 mr-3" ) ; cityName . text ( weatherData . name ) ; $ ( "#currentDisplay" ) . append ( cityName ) ; var date = moment . unix ( weatherData . dt ) . format ( "MM/DD/YYYY" ) ; $ ( "#jumboDate" ) . text ( date ) ; var dateDisplay = $ ( "<h2>" ) . attr ( "class" , "pt-4 mr-2" ) ; dateDisplay . text ( date ) ; $ ( "#currentDisplay" ) . append ( dateDisplay ) ; var icon = weatherData . weather [ 0 ] . icon ; var alt = weatherData . weather [ 0 ] . description ; var iconURL = "http://openweathermap.org/img/wn/" + icon + "@2x.png" ; var currentImage = $ ( "<img>" ) . attr ( "src" , iconURL ) . attr ( "alt" , alt ) ; $ ( "#currentDisplay" ) . append ( currentImage ) ; var temp = weatherData . main . temp ; $ ( "#jumboTemp" ) . html ( temp + "&deg;" ) ; var humidity = weatherData . main . humidity + "%" ; $ ( "#jumboHumid" ) . text ( humidity ) ; var wind = weatherData . wind . speed + " MPH" ; $ ( "#jumboWind" ) . text ( wind ) ; }
Function to display current weather in jumbotron
Function to display current weather in jumbotron