|
4 | 4 |
|
5 | 5 | // ---------------- PLAYLIST ---------------- |
6 | 6 | 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 | + } |
14 | 49 | ]; |
15 | 50 |
|
| 51 | + |
16 | 52 | // ---------------- STATE ---------------- |
17 | 53 | let currentSongIndex = 0; |
18 | 54 | let isPlaying = false; |
|
0 commit comments