Table of Contents
This is a JavaScript project that implements:
- Async and callback functions.
- Fetching data with an API.
- Parsing data as JSON.
- Click event handlers.
- Adding and removing CSS classes.
This script pulls 100 images and displays them in a random order right on the web page using the Lorem Picsum API, complete with the photographer credit, too. Want a different image? Click the button as many times as you want to get a new picture in the frame.
- HTML
- CSS
- JavaScript
This web page was crafted with vanilla code. No dependencies here!
All you need is a browser (to view/interact) and a text editor (to modify).
- Clone this repo and you're all set!
index.html
: structure and layout.styles.css
: design and aesthetics.script.js
: functionality.- Lorem Picsum API: photo library.
There are no plans to implement additional features at this time.
This project is for learning/demonstration and is not being actively developed.
Distributed under the MIT License.
- Module 12: Intro to APIs
- Step 5 of 7: Fetch a Random Image Array
- normalize.css