diff --git a/example/js/site.js b/example/js/site.js index c26ba0d..ef98f92 100644 --- a/example/js/site.js +++ b/example/js/site.js @@ -48,7 +48,7 @@ if (data.response.error) { showError(data.response.error.description); } else { - buildForcast(zipcode, data.forecast.simpleforecast.forecastday); + buildForecast(zipcode, data.forecast.simpleforecast.forecastday); } } }); @@ -59,7 +59,7 @@ * @param zipcode * @param forecast */ - function buildForcast (zipcode, forecast) { + function buildForecast (zipcode, forecast) { for (var i = 0; i < forecast.length; i++) { var date = '
' + forecast[i].date.monthname_short + ' ' + forecast[i].date.day + '
'; var image = weatherIcon(forecast[i].icon);