+
-
diff --git a/scripts/weather/WeatherPreview.js b/scripts/weather/WeatherPreview.js
index 906df57..02483e2 100644
--- a/scripts/weather/WeatherPreview.js
+++ b/scripts/weather/WeatherPreview.js
@@ -1,6 +1,6 @@
export const displayWeather = (weatherObj) => {
const contentElement = document.getElementById("parkForecast");
- const firstday = weatherObj[0].dt;//!
+ const firstday = weatherObj[0].dt;//! FIRST DAY EPOCH CONVERSION
//? converting epoch date to better work with milliseconds (TIME ACCURACY)
const firstADate = firstday * 1000;
//? conforms date to readable format
@@ -10,7 +10,7 @@ export const displayWeather = (weatherObj) => {
//? returns the hour of the day
- const secondDay = weatherObj[1].dt;//!
+ const secondDay = weatherObj[1].dt;//! SECOND DAY EPOCH CONVERSION
//? converting epoch date to better work with milliseconds (TIME ACCURACY)
const secondADate = secondDay * 1000;
//? conforms date to readable format
@@ -20,7 +20,7 @@ export const displayWeather = (weatherObj) => {
//? returns the hour of the day
- const thirdDay = weatherObj[2].dt;//!
+ const thirdDay = weatherObj[2].dt;//! THIRD DAY EPOCH CONVERSION
//? converting epoch date to better work with milliseconds (TIME ACCURACY)
const thirdADate = thirdDay * 1000;
//? conforms date to readable format
@@ -30,7 +30,7 @@ export const displayWeather = (weatherObj) => {
//? returns the hour of the day
- const fourthDay = weatherObj[3].dt;//!
+ const fourthDay = weatherObj[3].dt;//! FOURTH DAY EPOCH CONVERSION
//? converting epoch date to better work with milliseconds (TIME ACCURACY)
const fourthADate = fourthDay * 1000;
//? conforms date to readable format
@@ -40,7 +40,7 @@ export const displayWeather = (weatherObj) => {
//? returns the hour of the day
- const fifthDay = weatherObj[4].dt;//!
+ const fifthDay = weatherObj[4].dt;//! FIFTH DAY EPOCH CONVERSION
//? converting epoch date to better work with milliseconds (TIME ACCURACY)
const fifthADate = fifthDay * 1000;
//? conforms date to readable format
@@ -54,36 +54,36 @@ export const displayWeather = (weatherObj) => {
${firstDayDate}'s
"Golden Hour"
-
${weatherObj[0].weather[0].main}
-
${weatherObj[0].main.temp}° F
+
${weatherObj[0].weather[0].main}
+
${weatherObj[0].main.temp}° F
${weatherObj[0].weather[0].description}
${secondDayDate}'s
"Golden Hour"
-
${weatherObj[1].weather[0].main}
-
${weatherObj[1].main.temp}° F
+
${weatherObj[1].weather[0].main}
+
${weatherObj[1].main.temp}° F
${weatherObj[1].weather[0].description}
${thirdDayDate}'s
"Golden Hour"
-
${weatherObj[2].weather[0].main}
-
${weatherObj[2].main.temp}° F
+
${weatherObj[2].weather[0].main}
+
${weatherObj[2].main.temp}° F
${weatherObj[2].weather[0].description}
${fourthDayDate}'s
"Golden Hour"
-
${weatherObj[3].weather[0].main}
-
${weatherObj[3].main.temp}° F
+
${weatherObj[3].weather[0].main}
+
${weatherObj[3].main.temp}° F
${weatherObj[3].weather[0].description}
${fifthDayDate}'s
"Golden Hour"
-
${weatherObj[4].weather[0].main}
-
${weatherObj[4].main.temp}° F
+
${weatherObj[4].weather[0].main}
+
${weatherObj[4].main.temp}° F
${weatherObj[4].weather[0].description}
`;