From 0750856f9857136e909e4d3c6ffa16a3613a32e8 Mon Sep 17 00:00:00 2001 From: Priscilla Date: Wed, 20 May 2020 01:11:48 -0700 Subject: [PATCH 1/2] finished album info --- scripts/album-info.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/album-info.js b/scripts/album-info.js index e69de29b..8fb1ae42 100644 --- a/scripts/album-info.js +++ b/scripts/album-info.js @@ -0,0 +1,6 @@ +{ + $('#album-title').text(album.title); + $('img#album-cover-art').attr('src', album.albumArtUrl); + $('.artist').text(album.artist); + $('#release-info').text(album.releaseInfo); +} \ No newline at end of file From b610266b62e013688167b3208231d6534e037a85 Mon Sep 17 00:00:00 2001 From: Priscilla Date: Thu, 21 May 2020 01:14:53 -0700 Subject: [PATCH 2/2] checkpoint 16 changes --- scripts/song-list.js | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/scripts/song-list.js b/scripts/song-list.js index e69de29b..2910d02c 100644 --- a/scripts/song-list.js +++ b/scripts/song-list.js @@ -0,0 +1,29 @@ +{ + album.songs.forEach( (song, index) => { + song.element = $(` + + + + + song.title + song.duration + ${index + 1} + ${song.title} + ${song.duration} + + `); + + song.element.on('click', event => { + player.playPause(song); + }); + + $('#song-list').append(song.element); + }); +} + + +