Skip to content

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

License

Notifications You must be signed in to change notification settings

devugees/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. create a GitHub repository

    1. got to your GitHub profile
    2. click the "Repositories"
    3. in the field "Repository name" enter "simple-gallery" (exactly)
    4. pick the "MIT" license
    5. click the "Dowload or clone" button
    6. make sure you are using the "SSH" URL (should start with "git@github"
    7. open a terminal
    8. enter git clone <the SSH URL of your repository>
  2. basics (see simple-slider-step-1.jpg)

    1. find (at least) 5 images licensed under creative common (https://unsplash.com/)
    2. create a file data.json consisting of an array of object with the keys
      • author
      • src
      • link
      • title
    3. load the data.json file using $.getJSON()
    4. 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 Hint: use removeClass and addClass
    5. when you load - or reload - the page, the first image must be displayed it with the right author, title and so) Hint: use .trigger()
    6. create a "Next" and "Back" button which when clicked act like clicking on either the next or the previous pager item

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published