diff --git a/css/weather-screen.css b/css/weather-screen.css
index d885344..3bbab1d 100644
--- a/css/weather-screen.css
+++ b/css/weather-screen.css
@@ -186,6 +186,11 @@
text-align: center;
}
+.weatherForecastDayDateName {
+ font-weight: 900;
+ font-size: 14pt;
+}
+
/*Right side*/
.weatherForecastDayDate {
clear:both;
@@ -235,6 +240,11 @@
clear: none;
}
+ .weatherForecastDayDateName {
+ font-weight: 400;
+ font-size: 12pt;
+ }
+
/*Center*/
.weatherForecastDayDetails {
display: inline-block;
diff --git a/index.html b/index.html
index 1ea5359..83037c4 100644
--- a/index.html
+++ b/index.html
@@ -220,6 +220,10 @@
diff --git a/js/greeter-date-message.js b/js/greeter-date-message.js
index fa1a494..363cc3f 100644
--- a/js/greeter-date-message.js
+++ b/js/greeter-date-message.js
@@ -4,11 +4,7 @@ class GreeterDateMessage {
this._greeterMessage = document.querySelector('#greeterMessage');
this._dateMessage = document.querySelector('#dateMessage');
- this._updateGreeterDateMessage();
- }
-
- _getMonths = () => {
- const monthsArr = [
+ this._monthsArr = [
'January',
'February',
'March',
@@ -22,11 +18,8 @@ class GreeterDateMessage {
'November',
'December'
];
- return monthsArr;
- }
- _getDays = () => {
- const _daysArr = [
+ this._daysArr = [
'Sunday',
'Monday',
'Tuesday',
@@ -35,7 +28,8 @@ class GreeterDateMessage {
'Friday',
'Saturday'
];
- return _daysArr;
+
+ this._updateGreeterDateMessage();
}
_getDayOrdinal = (day) => {
@@ -61,7 +55,7 @@ class GreeterDateMessage {
this._greeterMessage.innerHTML = `Good
${greeterSuffix}!`;
this._dateMessage.innerHTML = `Today's the ${this._getDayOrdinal(date.getDate())} of ` +
- `${this._getMonths()[date.getMonth()]}, and it's ${this._getDays()[date.getDay()]}.`;
+ `${this._monthsArr[date.getMonth()]}, and it's ${this._daysArr[date.getDay()]}.`;
}
}
\ No newline at end of file
diff --git a/js/weather-screen.js b/js/weather-screen.js
index 1eb0e90..dc88161 100644
--- a/js/weather-screen.js
+++ b/js/weather-screen.js
@@ -3,6 +3,15 @@ class WeatherScreen {
constructor() {
this._weatherScreenVisibility = false;
this._tempSymbol = '°C';
+ this._daysArr = [
+ 'Sunday',
+ 'Monday',
+ 'Tuesday',
+ 'Wednesday',
+ 'Thursday',
+ 'Friday',
+ 'Saturday'
+ ];
this._weatherScreen = document.querySelector('#weatherScreen');
this._weatherIcon = document.querySelector('#weatherTodayIcon');
@@ -78,22 +87,23 @@ class WeatherScreen {
this._updateWeatherDockButton(icon);
}
- _createForecastBody = (fIcon, forecastTemp, foreDescription, fHour, fDate) => {
+ _createForecastBody = (fIcon, forecastTemp, foreDescription, dayName, fHour) => {
// Generate forecast
this._forecastContainer.insertAdjacentHTML(
'beforeend',
`