fixed bug

This commit is contained in:
Sergey Yarkov 2019-09-21 18:47:16 +03:00
parent d49b13ce0a
commit ebe715640d
3 changed files with 5 additions and 3 deletions

View File

@ -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 {

View File

@ -21,7 +21,7 @@
<button id="search-btn">Найти</button>
</div>
</div>
<div class="title-desctiption">
<div class="title-description">
<h1>Информация о погоде:</h1>
</div>
<div class="weather">

View File

@ -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'),