Skip to content

StuartCowley/randomPictureDisplay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

randomPictureDisplay

Random Picture display generator

Brief: (Project set as part of the Code Nation Master course)

  • Build a browser based random image generator using the unsplash API
  • Include inputs for the number of images wanted and a keyword term to narrow down searches
  • Include a reset button to clear the screen

Screenshot

Tech/framework used

  • Built with JavaScript

Features:

  • Can display up to 7 images per line on full screen browser
  • Will generate the desired number of random images. If a single word is entered in the keyword field, images are filtered to include it before displaying
  • Display can be emptied with the reset button

Code example: (The following is the logic for fetching the random image from unsplash.com)

Screenshot

If requesting large numbers of images, some images will be duplicates. Using a sleep function to delay requests to the API, improved the amount of different images but was inefficient. Another API may be the answer but time constraints prevented me finding one

Link to documentation for unsplash:

Built by:

  • @StuartCowley

About

Random picture display generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published