where-do-we-go: precise instructions for the compass

This commit is contained in:
Marie Malarme 2021-03-10 12:02:59 +00:00 committed by Clément
parent 55a8fc520e
commit 8561880444
1 changed files with 4 additions and 1 deletions

View File

@ -14,7 +14,10 @@ Write the function `explore` which creates a page displaying the list of `places
- using the corresponding `color` as text color
- updates the `name`, `coordinates` and `color` on scroll, when the top of the next image reaches the middle of the screen height
- has the `href` attribute set to open **a new tab** redirecting to a Google Maps' URL with the coordinates of the place currently displayed
- display a compass indicating the latitude direction ; `N` for North if the user is scrolling up, `S` for South if he's scrolling down
- display a compass as a `div` tag indicating the latitude direction which:
- has the class `direction`
- displays `N` for North if the user is scrolling up
- displays `S` for South if he's scrolling down
### Notions