diff --git a/css/style.css b/css/style.css index 9d5eafe..63e2419 100644 --- a/css/style.css +++ b/css/style.css @@ -15,10 +15,12 @@ hr { border: none; margin: 0; } -.title-desctiption h1 { +.title-description h1 { text-align: center; font-size: 26px; margin-top: 2rem; +} +.title-description { display: none; } .weather { diff --git a/index.html b/index.html index cf08c9c..cbf11b5 100644 --- a/index.html +++ b/index.html @@ -21,7 +21,7 @@ -
+

Информация о погоде:

diff --git a/js/app.js b/js/app.js index 0fea80e..8c79b84 100644 --- a/js/app.js +++ b/js/app.js @@ -7,7 +7,7 @@ function weatherInfo() { // обработчик function showData(data) { const weatherCard = document.querySelector('.weather-card'), - titleCard = document.querySelector('.title-desctiption'), + titleCard = document.querySelector('.title-description'), titleData = document.querySelector('.weather-card__title h2'), tempData = document.querySelector('.weather-card__temp p'), descData = document.querySelector('.weather-card__description p'),