nss-evening-cohort-11 / bands-viking-galaxy

bands-viking-galaxy created by GitHub Classroom
0 stars 1 forks source link

Advanced tickets button #40

Closed StevenZelenak closed 4 years ago

StevenZelenak commented 4 years ago

User Story

As as user, every ticket button should display information about the show you are buying tickets for.

AC

When you navigate to the tour page Then you should see a table of buttons And when you click on a button you should get info about the concert you are buying tickets for.

Dev Notes

StevenZelenak commented 4 years ago
let ticketId = e.target.id;

    if (e.target.id === '18') {
        alert(`Congrats! You bought your tickets for the ${concerts[ticketId].Venue} showing located on the ${concerts[ticketId].Location} on ${concerts[ticketId].Date}.`);
    } else if (e.target.id === '19') {
        alert(`Congrats! You bought your tickets for the ${concerts[ticketId].Venue} showing located on ${concerts[ticketId].Location} on ${concerts[ticketId].Date}.`);
    } else {
        alert(`Congrats! You bought your tickets for the ${concerts[ticketId].Venue} showing located in ${concerts[ticketId].Location} on ${concerts[ticketId].Date}.`);
    }