Update app.js

This commit is contained in:
Sergey 2019-09-21 21:48:11 +03:00 committed by GitHub
parent 01f8197b22
commit b4bb1940d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,7 @@ function weatherInfo() {
document.querySelector('#search-btn').onclick = () => { document.querySelector('#search-btn').onclick = () => {
// запрос // запрос
const searchValue = document.querySelector('#search-area').value; const searchValue = document.querySelector('#search-area').value;
const request = `http://api.openweathermap.org/data/2.5/weather?q=${searchValue}&appid=32dda4a23cf5093afca2f2f086c16833`; const request = `https://api.openweathermap.org/data/2.5/weather?q=${searchValue}&appid=32dda4a23cf5093afca2f2f086c16833`;
if (searchValue.trim() != '') { if (searchValue.trim() != '') {
// обработчик // обработчик