mirror of
https://github.com/sergeyyarkov/openweather-api.git
synced 2026-10-11 10:28:52 +03:00
fixed bug
This commit is contained in:
parent
d49b13ce0a
commit
ebe715640d
@ -15,10 +15,12 @@ hr {
|
|||||||
border: none;
|
border: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
.title-desctiption h1 {
|
.title-description h1 {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 26px;
|
font-size: 26px;
|
||||||
margin-top: 2rem;
|
margin-top: 2rem;
|
||||||
|
}
|
||||||
|
.title-description {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.weather {
|
.weather {
|
||||||
|
|||||||
@ -21,7 +21,7 @@
|
|||||||
<button id="search-btn">Найти</button>
|
<button id="search-btn">Найти</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="title-desctiption">
|
<div class="title-description">
|
||||||
<h1>Информация о погоде:</h1>
|
<h1>Информация о погоде:</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="weather">
|
<div class="weather">
|
||||||
|
|||||||
@ -7,7 +7,7 @@ function weatherInfo() {
|
|||||||
// обработчик
|
// обработчик
|
||||||
function showData(data) {
|
function showData(data) {
|
||||||
const weatherCard = document.querySelector('.weather-card'),
|
const weatherCard = document.querySelector('.weather-card'),
|
||||||
titleCard = document.querySelector('.title-desctiption'),
|
titleCard = document.querySelector('.title-description'),
|
||||||
titleData = document.querySelector('.weather-card__title h2'),
|
titleData = document.querySelector('.weather-card__title h2'),
|
||||||
tempData = document.querySelector('.weather-card__temp p'),
|
tempData = document.querySelector('.weather-card__temp p'),
|
||||||
descData = document.querySelector('.weather-card__description p'),
|
descData = document.querySelector('.weather-card__description p'),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user