From 8746c4d581198584a1071789490eb2e88e23c463 Mon Sep 17 00:00:00 2001 From: Lauren Rose Date: Tue, 25 Feb 2020 16:32:40 -0600 Subject: [PATCH 1/3] v1 --- scripts/album-info.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/album-info.js b/scripts/album-info.js index e69de29b..41df00e8 100644 --- a/scripts/album-info.js +++ b/scripts/album-info.js @@ -0,0 +1,4 @@ +{ + $('#album-title').text(album.title); + $('img#album-cover-art').attr('src', album.albumArtUrl); +} From b36331a2bb40d1d2d26c6ec2a51c9037133d2f71 Mon Sep 17 00:00:00 2001 From: Lauren Rose Date: Tue, 25 Feb 2020 21:14:22 -0600 Subject: [PATCH 2/3] v1 --- scripts/album-info.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/album-info.js b/scripts/album-info.js index 41df00e8..63257971 100644 --- a/scripts/album-info.js +++ b/scripts/album-info.js @@ -1,4 +1,6 @@ { - $('#album-title').text(album.title); $('img#album-cover-art').attr('src', album.albumArtUrl); + $('#album-title').text(album.title); + $('.artist').text(album.artist); + $('#release-info').text(album.releaseInfo; } From 9d30b5644420b6e7cdbe84bb8856b8a9e58c7fa6 Mon Sep 17 00:00:00 2001 From: Lauren Rose Date: Wed, 26 Feb 2020 17:38:48 -0600 Subject: [PATCH 3/3] v1 --- scripts/song-list.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/scripts/song-list.js b/scripts/song-list.js index e69de29b..fdb049bb 100644 --- a/scripts/song-list.js +++ b/scripts/song-list.js @@ -0,0 +1,24 @@ +{ + + album.songs.forEach( (song, index) => { + song.element = $(` + + + + + ${song.title} + ${song.duration} + + `); + +song.element.on(`click`, event => { + player.playPause(song); +}); + + $(`#song-list`).append(song.element); + }); +}