This is a school project to do an useless web. You can visit my site here: https://thisisuseless.netlify.app/
- You can clone this repo and open it with your favourite code-editor.
- Open a localhost in your terminal by writing: php -S localhost:8000
- Visit the localhost in your browser.
- Enjoy!
Code review written by Sofia Dersén.
- index.html:30 - The spinning sloths are quite close to the edges on smaller screens. Perhaps some margins would fix that.
- index.html:34 - There is a div that, from what I can see isn’t used. Maybe it could be removed?
- functions.js:1-14 - The sloths-array is missing alt-texts. You could make it a multidimensional array and add alt texts to each gif instead of having the same for all.
- functions.js:30 - The name; buttonEat is not descriptive, perhaps slothBtn would be a better name?
- spinningSloths.js:24-32 - What a nice fun feature with the spinning Sloths! You could have assigned an event listener inside the first forEach where you created your images. (Pssst… you have a variable called “hejsan” left…).
Tested by the following people:
- Nelly
- Susanne
