Skip to content

Commit 3b3595f

Browse files
authored
Merge pull request #7 from irohan4792/feature/change-hero
removed music from code
2 parents 739e826 + d3099cf commit 3b3595f

File tree

8 files changed

+43
-7
lines changed

8 files changed

+43
-7
lines changed

js/music-player.js

Lines changed: 43 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,51 @@
44

55
// ---------------- PLAYLIST ----------------
66
const playlist = [
7-
{ id: 1, title: "Closer", artist: "Rohan Sharma", src: "music/closer.wav" },
8-
{ id: 2, title: "Golden Hour", artist: "Rohan Sharma", src: "music/golden_hour.wav" },
9-
{ id: 3, title: "Kaise hua", artist: "Rohan Sharma", src: "music/kaise_hua.wav" },
10-
{ id: 4, title: "Kho Gaye", artist: "Rohan Sharma", src: "music/kho_gaye.wav" },
11-
{ id: 5, title: "Ranjha", artist: "Rohan Sharma", src: "music/ranjha.wav" },
12-
{ id: 6, title: "Saiyaara", artist: "Rohan Sharma", src: "music/saiyara.wav" },
13-
{ id: 7, title: "Wildest Dreams", artist: "Rohan Sharma", src: "music/wildest_dreams.wav" }
7+
{
8+
id: 1,
9+
title: "Closer",
10+
artist: "Rohan Sharma",
11+
src: "https://github.com/irohan4792/portfolio-website/releases/download/audio-files/closer.wav"
12+
},
13+
{
14+
id: 2,
15+
title: "Golden Hour",
16+
artist: "Rohan Sharma",
17+
src: "https://github.com/irohan4792/portfolio-website/releases/download/audio-files/golden_hour.wav"
18+
},
19+
{
20+
id: 3,
21+
title: "Kaise hua",
22+
artist: "Rohan Sharma",
23+
src: "https://github.com/irohan4792/portfolio-website/releases/download/audio-files/kaise_hua.wav"
24+
},
25+
{
26+
id: 4,
27+
title: "Kho Gaye",
28+
artist: "Rohan Sharma",
29+
src: "https://github.com/irohan4792/portfolio-website/releases/download/audio-files/kho_gaye.wav"
30+
},
31+
{
32+
id: 5,
33+
title: "Ranjha",
34+
artist: "Rohan Sharma",
35+
src: "https://github.com/irohan4792/portfolio-website/releases/download/audio-files/ranjha.wav"
36+
},
37+
{
38+
id: 6,
39+
title: "Saiyaara",
40+
artist: "Rohan Sharma",
41+
src: "https://github.com/irohan4792/portfolio-website/releases/download/audio-files/saiyara.wav"
42+
},
43+
{
44+
id: 7,
45+
title: "Wildest Dreams",
46+
artist: "Rohan Sharma",
47+
src: "https://github.com/irohan4792/portfolio-website/releases/download/audio-files/wildest_dreams.wav"
48+
}
1449
];
1550

51+
1652
// ---------------- STATE ----------------
1753
let currentSongIndex = 0;
1854
let isPlaying = false;

music/closer.wav

-28.7 MB
Binary file not shown.

music/golden_hour.wav

-14.4 MB
Binary file not shown.

music/kaise_hua.wav

-28.3 MB
Binary file not shown.

music/kho_gaye.wav

-25.4 MB
Binary file not shown.

music/ranjha.wav

-13.5 MB
Binary file not shown.

music/saiyara.wav

-23.1 MB
Binary file not shown.

music/wildest_dreams.wav

-23.5 MB
Binary file not shown.

0 commit comments

Comments
 (0)