mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-26 08:01:08 -04:00
chore(curriculum): Updating the assets to be served by the CDN - Music Player Project (#54714)
This commit is contained in:
@@ -111,7 +111,7 @@ assert.equal(pauseButton, document.getElementById('pause'));
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -108,7 +108,7 @@ assert.equal(shuffleButton, document.getElementById('shuffle'));
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -72,7 +72,7 @@ assert.isEmpty(allSongs)
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -68,7 +68,7 @@ assert.match(code, /const\s+audio\s*=\s*new\s+Audio\(\s*\)\s*;?/)
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -540,70 +540,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ assert.deepEqual(userData, {});
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -538,70 +538,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ assert.match(code, /const\s+playSong\s*=\s*(\(\s*id\s*\)|id)\s*=>\s*\{\n?\s*?\}\
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -556,70 +556,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -90,7 +90,7 @@ assert.match(code, /const\s+song\s*=\s*userData\?\.songs\.find\(\s*(\(\s*song\s*
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -562,70 +562,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ assert.match(code, /const\s+playSong\s*=\s*\(\s*id\s*\)\s*=>\s*\{\s*const\s+song
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -544,70 +544,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ assert.match(code, /if\s*\(\s*(?:(?:!userData\?\.currentSong|\s*userData\?\.curr
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -540,70 +540,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ assert.match(code, /userData\.currentSong\s*=\s*song\s*;?/)
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -534,70 +534,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ assert.match(code, /playButton\.addEventListener\(\s*('|"|`)click\1\s*,\s*\(\s*\
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -544,70 +544,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ assert.match(code, /const\s+renderSongs\s*=\s*(\(\s*array\s*\)|array)\s*=>\s*\{\
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -556,70 +556,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ assert.match(code, /const\s+songsHTML\s*=\s*array\.map\(\s*\)/);
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -540,70 +540,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ assert.match(code, /return\s*`\s*<li[^>]*\sclass\s*=\s*('|")playlist-song\1[^>]*
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -550,70 +550,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ assert.match(code, /<button\s*class\s*=\s*('|")playlist-song-info\1\s*>\s*<span\
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -548,70 +548,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@ assert.match(code, /<span\s*class\s*=\s*('|")playlist-song-duration\1\s*>\s*\$\{
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -558,70 +558,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ assert.match(code, /<button\s+class\s*=\s*('|")playlist-song-delete\1\s*aria-lab
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -546,70 +546,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ assert.match(code, /<button\s+class\s*=\s*('|")playlist-song-delete\1\s*aria-lab
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -546,70 +546,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@ assert.match(code, /renderSongs\(\s*userData\?\.songs\s*\)/)
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -551,70 +551,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ assert.match(code, /if\s*\((\s*\!userData\?\.currentSong\s*|\s*userData\?\.curre
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -538,70 +538,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ assert.match(code, /if\s*\(\s*userData\?\.currentSong\s*===\s*null\s*\)\s*\{\s*p
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -545,70 +545,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ assert.match(code, /const\s+pauseSong\s*=\s*\(\s*\)\s*=>\s*\{\n?\s*?\}\s*;?/)
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -550,70 +550,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ assert.match(code, /userData\.songCurrentTime\s*=\s*audio\.currentTime\s*;?/)
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -538,70 +538,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ assert.match(code, /audio\.pause\(\s*\)/)
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -544,70 +544,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ assert.match(code, /pauseButton\.addEventListener\(\s*('|"|`)click\1\s*,\s*pause
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -546,70 +546,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ assert.match(code, /audio\.play\(\s*\)\s*;?/)
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -538,70 +538,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ assert.match(code, /const\s+playNextSong\s*=\s*\(\s*\)\s*=>\s*\{\n?\s*?\}\s*;?/)
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -550,70 +550,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ assert.match(splitter[0], /if\s*\(\s*userData\?\.currentSong\s*===\s*null\s*\)\s
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -548,70 +548,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ assert.match(splitter[0], /if\s*\(\s*userData\?\.currentSong\s*===\s*null\s*\)\s
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -550,70 +550,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -81,7 +81,7 @@ assert.match(splitter[0], /if\s*\(\s*userData\?\.currentSong\s*===\s*null\s*\)\s
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -553,70 +553,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ assert.match(code, /nextButton\.addEventListener\(\s*('|"|`)click\1\s*,\s*playNe
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -546,70 +546,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ assert.match(code, /const\s+playPreviousSong\s*=\s*\(\s*\)\s*=>\s*\{\n?\s*?\}\s*
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -548,70 +548,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@ assert.match(code, /const\s+playPreviousSong\s*=\s*\(\s*\)\s*=>\s*\{\s*if\s*\(\s
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -558,70 +558,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ assert.match(code, /if\s*\(\s*userData\?\.currentSong\s*===\s*null\s*\)\s*\{?\s*
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -542,70 +542,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ assert.match(code, /previousButton\.addEventListener\(\s*('|"|`)click\1\s*,\s*pl
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -542,70 +542,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ assert.match(code, /const\s+highlightCurrentSong\s*=\s*\(\s*\)\s*=>\s*{\s*const\
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -556,70 +556,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ assert.match(code, /(let|const)\s+getCurrentSongIndex\s*=\s*\(\s*\)\s*=>\s*{\s*}
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -538,70 +538,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ assert.match(code, /const\s+songToHighlight\s*=\s*document\.getElementById\(\s*`
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -544,70 +544,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -83,7 +83,7 @@ assert.match(code, /playlistSongElements\.forEach\(\s*(\(\s*songEl\s*\)|songEl)\
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -555,70 +555,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ assert.match(code, /if\s*\(\s*songToHighlight\s*\)\s*\{?\s*songToHighlight\.setA
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -544,70 +544,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ assert.match(code, /highlightCurrentSong\(\s*\)/)
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -532,70 +532,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ assert.match(code, /const\s+setPlayerDisplay\s*=\s*\(\s*\)\s*=>\s*\{\n?\s*?\}\s*
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -548,70 +548,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ assert.match(code, /const\s+songArtist\s*\=\s*document\.getElementById\(\s*('|"|
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -556,70 +556,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ assert.match(code, /const\s+currentArtist\s*=\s*userData\?\.currentSong\?\.artis
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -548,70 +548,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -89,7 +89,7 @@ assert.match(code, /songArtist\.textContent\s*=\s*currentArtist\s*\?\s*currentAr
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -561,70 +561,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ assert.match(code, /setPlayerDisplay\(\s*\)\s*;?/)
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -532,70 +532,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ assert.match(code, /const\s+setPlayButtonAccessibleText\s*=\s*\(\s*\)\s*=>\s*\{\
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -550,70 +550,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ assert.match(code, /const\s+song\s*=\s*userData\?\.currentSong\s*\|\|\s*userData
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -544,70 +544,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ assert.match(code, /playButton\.setAttribute\(\s*('|")aria-label\1\s*,\s*song\?\
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -552,70 +552,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ assert.match(code, /setPlayButtonAccessibleText\(\s*\)\s*;?/)
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -530,70 +530,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ assert.match(code, /const\s+shuffle\s*=\s*\(\s*\)\s*=>\s*\{\n?\s*?\}\s*;?/)
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -550,70 +550,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@ assert.match(code, /userData\?\.songs\.sort\s*\(\s*\(\s*\)\s*=>(\s*{\s*return\s+
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -558,70 +558,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ assert.match(code, /userData\.songCurrentTime\s*=\s*0\s*;?/)
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -540,70 +540,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ assert.match(code, /const\s+shuffle\s*=\s*\(\s*\)\s*=>\s*\{\s*userData\?\.songs\
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -556,70 +556,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ assert.match(code, /shuffleButton\.addEventListener\(\s*('|")click\1\s*,\s*shuff
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -544,70 +544,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ assert.match(code, /const\s+deleteSong\s*=\s*(\(\s*id\s*\)|id)\s*=>\s*\{\n?\s*?\
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -556,70 +556,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ assert.match(code, /userData\.songs\s*=\s*userData\?\.songs\.filter\(\s*(\(\s*so
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -567,70 +567,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ assert.match(code, /const\s+deleteSong\s*=\s*\(\s*id\s*\)\s*=>\s*\{\s*userData\.
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -552,70 +552,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ assert.match(code, /if\s*\(\s*userData\?\.currentSong\?\.id\s*===\s*id\s*\)\s*\{
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -532,70 +532,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ assert.match(code, /if\s*\(\s*userData\?\.currentSong\?\.id\s*===\s*id\s*\)\s*\{
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -556,70 +556,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ assert.match(code, /if\s*\(\s*userData\?\.songs\.length\s*===\s*0\s*\)\s*\{\s*\}
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -532,70 +532,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -89,7 +89,7 @@ assert.match(code, /const\s+resetButton\s*=\s*document\.createElement\(\s*('|")b
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -561,70 +561,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ assert.match(code, /resetButton\.ariaLabel\s*=\s*('|")Reset\s+playlist\1\s*;?/)
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -546,70 +546,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -88,7 +88,7 @@ assert.match(code, /playlistSongs\.appendChild\(\s*resetButton\s*\)\s*;?/)
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -560,70 +560,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ assert.match(code, /resetButton\.addEventListener\(\s*('|")click\1\s*,\s*\(\s*\)
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -544,70 +544,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ assert.match(code, /userData\.songs\s*=\s*\[\s*\.\.\.allSongs\s*\]/)
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -538,70 +538,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ assert.match(code, /resetButton\.addEventListener\(\s*('|")click\1\s*,\s*\(\s*\)
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -556,70 +556,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ assert.match(code, /audio\.addEventListener\(\s*('|")ended\1\s*,\s*\(\s*\)\s*=>\
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -547,70 +547,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ assert.match(code, /<button(?:\s+|\s+.*\s+)onclick\s*=\s*('|")deleteSong\(\s*\$\
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -530,70 +530,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@ assert.strictEqual(codeOutputSecondTest, false);
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/digital-drift.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/digital-drift.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -551,35 +551,35 @@ const allSongs = [
|
||||
title: "Hello World",
|
||||
artist: "Rafael",
|
||||
duration: "0:23",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/hello-world.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/hello-world.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "In the Zone",
|
||||
artist: "Rafael",
|
||||
duration: "0:11",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/in-the-zone.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/in-the-zone.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Camper Cat",
|
||||
artist: "Rafael",
|
||||
duration: "0:21",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/camper-cat.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/camper-cat.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Electronic",
|
||||
artist: "Rafael",
|
||||
duration: "0:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/electronic.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/electronic.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Sailing Away",
|
||||
artist: "Rafael",
|
||||
duration: "0:22",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/sailing-away.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/sailing-away.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ assert.match(code, /if\s*\(\s*nextSongExists\s*\)\s*\{\s*playNextSong\(\s*\)\s*;
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/digital-drift.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/digital-drift.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -536,35 +536,35 @@ const allSongs = [
|
||||
title: "Hello World",
|
||||
artist: "Rafael",
|
||||
duration: "0:23",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/hello-world.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/hello-world.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "In the Zone",
|
||||
artist: "Rafael",
|
||||
duration: "0:11",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/in-the-zone.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/in-the-zone.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Camper Cat",
|
||||
artist: "Rafael",
|
||||
duration: "0:21",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/camper-cat.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/camper-cat.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Electronic",
|
||||
artist: "Rafael",
|
||||
duration: "0:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/electronic.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/electronic.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Sailing Away",
|
||||
artist: "Rafael",
|
||||
duration: "0:22",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/sailing-away.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/sailing-away.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ assert.match(code, /if\s*\(\s*nextSongExists\s*\)\s*\{\s*playNextSong\(\s*\)\s*;
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/digital-drift.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/digital-drift.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -548,35 +548,35 @@ const allSongs = [
|
||||
title: "Hello World",
|
||||
artist: "Rafael",
|
||||
duration: "0:23",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/hello-world.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/hello-world.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "In the Zone",
|
||||
artist: "Rafael",
|
||||
duration: "0:11",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/in-the-zone.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/in-the-zone.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Camper Cat",
|
||||
artist: "Rafael",
|
||||
duration: "0:21",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/camper-cat.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/camper-cat.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Electronic",
|
||||
artist: "Rafael",
|
||||
duration: "0:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/electronic.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/electronic.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Sailing Away",
|
||||
artist: "Rafael",
|
||||
duration: "0:22",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/sailing-away.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/sailing-away.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ assert.match(splitter[1], /highlightCurrentSong\(\s*\)\s*;?\s*setPlayButtonAcces
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -554,70 +554,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
@@ -868,7 +868,7 @@ setPlayButtonAccessibleText();
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -1340,70 +1340,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ id: 0,
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
```
|
||||
|
||||
# --hints--
|
||||
@@ -55,10 +55,10 @@ Your `allSongs` array should have an object with a `duration` property set to th
|
||||
assert.equal(allSongs[0].duration, "4:25");
|
||||
```
|
||||
|
||||
Your `allSongs` array should have an object with an `src` property set to the string `"https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3"`.
|
||||
Your `allSongs` array should have an object with an `src` property set to the string `"https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3"`.
|
||||
|
||||
```js
|
||||
assert.equal(allSongs[0].src, "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3");
|
||||
assert.equal(allSongs[0].src, "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3");
|
||||
```
|
||||
|
||||
# --seed--
|
||||
@@ -102,7 +102,7 @@ assert.equal(allSongs[0].src, "https://s3.amazonaws.com/org.freecodecamp.mp3-pla
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -14,7 +14,7 @@ id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
```
|
||||
|
||||
# --hints--
|
||||
@@ -55,10 +55,10 @@ The second object in your `allSongs` array should have a `duration` property set
|
||||
assert.equal(allSongs[1].duration, "4:15");
|
||||
```
|
||||
|
||||
The second object in your `allSongs` array should have an `src` property set to the string `"https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3"`.
|
||||
The second object in your `allSongs` array should have an `src` property set to the string `"https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3"`.
|
||||
|
||||
```js
|
||||
assert.equal(allSongs[1].src, "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3");
|
||||
assert.equal(allSongs[1].src, "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3");
|
||||
```
|
||||
|
||||
# --seed--
|
||||
@@ -102,7 +102,7 @@ assert.equal(allSongs[1].src, "https://s3.amazonaws.com/org.freecodecamp.mp3-pla
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -574,7 +574,7 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
|
||||
--fcc-editable-region--
|
||||
|
||||
@@ -14,7 +14,7 @@ id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
```
|
||||
|
||||
# --hints--
|
||||
@@ -49,10 +49,10 @@ The third object in your `allSongs` array should have a `duration` property set
|
||||
assert.equal(allSongs[2].duration, "3:51");
|
||||
```
|
||||
|
||||
The third object in your `allSongs` array should have an `src` property set to the string `"https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3"`.
|
||||
The third object in your `allSongs` array should have an `src` property set to the string `"https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3"`.
|
||||
|
||||
```js
|
||||
assert.equal(allSongs[2].src, "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3");
|
||||
assert.equal(allSongs[2].src, "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3");
|
||||
```
|
||||
|
||||
# --seed--
|
||||
@@ -96,7 +96,7 @@ assert.equal(allSongs[2].src, "https://s3.amazonaws.com/org.freecodecamp.mp3-pla
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -568,7 +568,7 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
|
||||
{
|
||||
@@ -576,7 +576,7 @@ const allSongs = [
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
|
||||
--fcc-editable-region--
|
||||
|
||||
@@ -76,7 +76,7 @@ assert.deepPropertyVal(userData, "songs", [...allSongs]);
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -548,70 +548,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ assert.propertyVal(userData, "songCurrentTime", 0)
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -543,70 +543,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ assert.match(code, /if\s*\(\s*userData\?\.currentSong\s*===\s*null\s*\|\|\s*user
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -544,70 +544,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ assert.match(code, /playlistSongs\.innerHTML\s*=\s*songsHTML\s*;?/)
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -532,70 +532,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ assert.match(code, /playlistSongElements\.forEach\(\s*(?:\(\s*songEl\s*\)|songEl
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -538,70 +538,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ assert.match(code, /<button(?:\s+|\s+.*\s+)onclick\s*=\s*('|")playSong\(\s*\$\{s
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -532,70 +532,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ assert.match(code, /const\s+resetText\s*=\s*document\.createTextNode\(\s*('|")Re
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -556,70 +556,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ assert.match(code, /const\s+songsHTML\s*=\s*array\.map\(\s*(\(\s*song\s*\)|song)
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -545,70 +545,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ assert.match(code, /const\s+getCurrentSongIndex\s*=\s*\(\s*\)\s*=>(\s*userData\?
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -543,70 +543,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ assert.match(code, /userData\?\.songs\.sort\(/);
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -539,70 +539,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ assert.match(code, /userData\?\.songs\.sort\(\s*\(\s*a\s*,\s*b\s*\)\s*=>\s*{\s*}
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -554,70 +554,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -98,7 +98,7 @@ assert.match(code, /if\s*\(\s*a\.title\s*<\s*b\.title\s*\)\s*{\s*return\s*-1\s*;
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -570,70 +570,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -92,7 +92,7 @@ assert.match(code, /if\s*\(\s*a\.title\s*>\s*b\.title\s*\)\s*{\s*return\s*1\s*;?
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -564,70 +564,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ assert.match(code, /return\s+0\s*;?/);
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -552,70 +552,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ assert.match(code, /const|let\s+sortSongs\s*=\s*\(\s*\)\s*=>\s*{\s*}\s*;?/)
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -538,70 +538,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ assert.match(code, /renderSongs\(\s*sortSongs\(\s*\)\s*\)/);
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -534,70 +534,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ assert.match(code, /return\s+userData\?\.songs\s*;?/);
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -530,70 +530,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -88,7 +88,7 @@ assert.match(printGreeting.toString(), /console\.log\(['"]Hello\s+there!['"]\)/)
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -560,70 +560,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ assert.isBelow(code.indexOf("const printGreeting = () => {"), code.indexOf("prin
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -542,70 +542,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -120,7 +120,7 @@ assert.isBelow(functionDefinition, functionCall);
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -592,70 +592,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -99,7 +99,7 @@ assert.match(code, /console\.log\(addTwoNumbers\(3,\s*4\)\);?/);
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -571,70 +571,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ assert.match(code, /(let|const)\s+addTwoNumbers\s*=\s*\(\s*num1\s*,\s*num2\s*\)\
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -548,70 +548,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -90,7 +90,7 @@ assert.notMatch(code, /console\.log\(addTwoNumbers\(3,4\)\);?/);
|
||||
<div class="player-content">
|
||||
<div id="player-album-art">
|
||||
<img
|
||||
src="https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/quincy-larson-album-art.jpg"
|
||||
src="https://cdn.freecodecamp.org/curriculum/js-music-player/quincy-larson-album-art.jpg"
|
||||
alt="song cover art"
|
||||
/>
|
||||
</div>
|
||||
@@ -562,70 +562,70 @@ const allSongs = [
|
||||
title: "Scratching The Surface",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/scratching-the-surface.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/scratching-the-surface.mp3",
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
title: "Can't Stay Down",
|
||||
artist: "Quincy Larson",
|
||||
duration: "4:15",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stay-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Still Learning",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:51",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/still-learning.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cruising for a Musing",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:34",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cruising-for-a-musing.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cruising-for-a-musing.mp3",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Never Not Favored",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:35",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/never-not-favored.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/never-not-favored.mp3",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "From the Ground Up",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:12",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/from-the-ground-up.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/from-the-ground-up.mp3",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: "Walking on Air",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:25",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/walking-on-air.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/walking-on-air.mp3",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
title: "Can't Stop Me. Can't Even Slow Me Down.",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:52",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/cant-stop-me-cant-even-slow-me-down.mp3",
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
title: "The Surest Way Out is Through",
|
||||
artist: "Quincy Larson",
|
||||
duration: "3:10",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/the-surest-way-out-is-through.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/the-surest-way-out-is-through.mp3",
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
title: "Chasing That Feeling",
|
||||
artist: "Quincy Larson",
|
||||
duration: "2:43",
|
||||
src: "https://s3.amazonaws.com/org.freecodecamp.mp3-player-project/chasing-that-feeling.mp3",
|
||||
src: "https://cdn.freecodecamp.org/curriculum/js-music-player/chasing-that-feeling.mp3",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user