Skip to content

sareh88/simple-gallery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-gallery

An exercise to create a very simple gallery made with jQuery and AJAX.

Goal

train the loading of data with AJAX, jQuery event handlers and CSS positioning.

Steps

  1. basics (see simple-slider-step-1.jpg)
  2. find (at least) 5 images licensed under creative common (https://unsplash.com/)
  3. create a file data.json consisting of an array of object with the keys - author - src - link - title
  4. load the data.json file using $.getJSON()
  5. create a "pager" at the bottom of the page, when one of the pager item is clicked - it changes the information (image, author name, author link and title) accordingly - the clicked item is set to "active" (visually different from other pager items
  6. create a "Next" and "Back" button which when clicked act like clicking on either the next or the previous pager item

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published