(city)
| 24 | }); |
| 25 | |
| 26 | function requestApi(city){ |
| 27 | api = `https://api.openweathermap.org/data/2.5/weather?q=${city}&units=metric&appid=${'de1400a8c4500ee4e0ebe2e706f9d077'}`; |
| 28 | fetchData(); |
| 29 | } |
| 30 | |
| 31 | function onSuccess(position){ |
| 32 | const {latitude, longitude} = position.coords; |