Skip to content

Commit

Permalink
improve todos order
Browse files Browse the repository at this point in the history
  • Loading branch information
Egesiapres committed Oct 19, 2023
1 parent cd94e62 commit b388292
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
3 changes: 1 addition & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@
class="b-0 br-10"
type="button"
>
<img src="https://egesiapres.github.io/weather-app/img/location.svg" />
<!-- My location -->
<img src="https://egesiapres.github.io/weather-app/img/location.svg" />
</button>
</form>

Expand Down
2 changes: 1 addition & 1 deletion js/api/location.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { API_KEY } from '../utils.js';
export const getGeocoding = (
cityName = 'milan',
countryCode = '',
limit = '',
limit = '5',
stateCode = '',
APIkey = API_KEY
) =>
Expand Down
4 changes: 4 additions & 0 deletions js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const msToKmh = speed => {

export const meteoDegToDirection = meteoDeg => {
const directions = [
{ direction: 'N', arrow: '↓', interval: [0, 11.25] },
{ direction: 'N', arrow: <i class="wi wi-wind"></i>, 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] },
Expand Down
5 changes: 0 additions & 5 deletions style/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit b388292

Please sign in to comment.