nss-evening-cohort-10 / foundations-group-project-pardon-us

foundations-group-project-pardon-us created by GitHub Classroom
4 stars 0 forks source link

Array of Objects #15

Closed djunaim closed 5 years ago

djunaim commented 5 years ago

Story

As a developer, I want to set a template of how the data will look.

AC

WHEN the function is called, THEN it will loop through the data

Dev Notes

const printAlbums = (albumArray) => { //loop through albumArray and print title, year, and image to dom };

const displayTracks = (e) => { //function to reduce image div and add track list console.log('display event', e) };

const hideTracks = (e) => { //function to expand image div and hide track list console.log('hide event', e) };

const expandBtn = document.getElementById(''); const minimizeBtn = document.getElementById('');

expandBtn.addEventListener('click', displayTracks); minimizeBtn.addEventListener('click', hideTracks);

// Init - All Pages

const init = () => { if (document.URL.includes('music')){ printAlbums(albumList); } else if (document.URL.includes('merch')) { // load merch
} else if (document.URL.includes('about')) { // band member cards
} else { // hide tour dates
} };

init();

djunaim commented 5 years ago
const upcomingTourDates = [
  {
    Date:
    Location: 
    Time:
  },
]
EmileeA commented 5 years ago

const merchandise = [ { type: Shirt item: Shirt imageUrl: website price: 10 }, ]

CharityBunyon commented 5 years ago

Artist card outline: image