diff --git a/index.html b/index.html index ffc7c05..dc7c7f3 100644 --- a/index.html +++ b/index.html @@ -51,8 +51,7 @@ class="b-0 br-10" type="button" > - - + diff --git a/js/api/location.js b/js/api/location.js index d0200b7..96f7722 100644 --- a/js/api/location.js +++ b/js/api/location.js @@ -14,7 +14,7 @@ import { API_KEY } from '../utils.js'; export const getGeocoding = ( cityName = 'milan', countryCode = '', - limit = '', + limit = '5', stateCode = '', APIkey = API_KEY ) => diff --git a/js/script.js b/js/script.js index 5d1220a..e717faa 100644 --- a/js/script.js +++ b/js/script.js @@ -125,3 +125,7 @@ const displayWeatherData = async (location, event) => { displayWeatherData(); form.addEventListener('submit', e => displayWeatherData(input.value, e)); + +// TODO: current location +// TODO: air pollution +// TODO: hour/daily forecast diff --git a/js/utils.js b/js/utils.js index 23dd337..9a42c69 100644 --- a/js/utils.js +++ b/js/utils.js @@ -66,7 +66,7 @@ export const msToKmh = speed => { export const meteoDegToDirection = meteoDeg => { const directions = [ - { direction: 'N', arrow: '↓', interval: [0, 11.25] }, + { direction: 'N', arrow: , interval: [0, 11.25] }, { direction: 'N', arrow: '↓', interval: [348.75, 360] }, { direction: 'NNE', arrow: '↙', interval: [11.25, 33.75] }, { direction: 'NE', arrow: '↙', interval: [33.75, 56.25] }, diff --git a/style/style.css b/style/style.css index 9ce323c..01fc69f 100644 --- a/style/style.css +++ b/style/style.css @@ -256,9 +256,4 @@ select { /* TODO: clear css **/ /* TODO: animated icons copy */ -/* TODO: current location */ /* TODO: responsive */ - -/* data */ -/* TODO: air pollution */ -/* TODO: hour/daily forecast */