From 804d394545a2820fe5070600c157e5a6928c8a2e Mon Sep 17 00:00:00 2001 From: Pankaj Jain <47389183+pankajpj07@users.noreply.github.com> Date: Thu, 28 Feb 2019 11:24:36 +0530 Subject: [PATCH] Update app.js --- 1-12-skeleton/scripts/app.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/1-12-skeleton/scripts/app.js b/1-12-skeleton/scripts/app.js index 6c3175d..8898808 100644 --- a/1-12-skeleton/scripts/app.js +++ b/1-12-skeleton/scripts/app.js @@ -14,6 +14,32 @@ addDialog: document.querySelector('.dialog-container'), daysOfWeek: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] }; + var injectedForecast = { + key: 'newyork', + label: 'New York, NY', + currently: { + time: 1453489481, + summary: 'Clear', + icon: 'partly-cloudy-day', + temperature: 52.74, + apparentTemperature: 74.34, + precipProbability: 0.20, + humidity: 0.77, + windBearing: 125, + windSpeed: 1.52 + }, + daily: { + data: [ + {icon: 'clear-day', temperatureMax: 55, temperatureMin: 34}, + {icon: 'rain', temperatureMax: 55, temperatureMin: 34}, + {icon: 'snow', temperatureMax: 55, temperatureMin: 34}, + {icon: 'sleet', temperatureMax: 55, temperatureMin: 34}, + {icon: 'fog', temperatureMax: 55, temperatureMin: 34}, + {icon: 'wind', temperatureMax: 55, temperatureMin: 34}, + {icon: 'partly-cloudy-day', temperatureMax: 55, temperatureMin: 34} + ] + } + }; /*****************************************************************************