mirror of
https://github.com/sergeyyarkov/openweather-api.git
synced 2026-10-11 02:18:51 +03:00
fixed bug
This commit is contained in:
parent
d49b13ce0a
commit
ebe715640d
@ -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 {
|
||||
|
||||
@ -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">
|
||||
|
||||
@ -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'),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user