-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmusicas.html
141 lines (100 loc) · 4.36 KB
/
musicas.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title> BEATS: </title>
<script src="./script.js" defer></script>
<link rel="stylesheet" href="./style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Vina+Sans&display=swap" rel="stylesheet">
</head>
<body>
<header>
<button class="menu-toggle">☰</button>
<nav>
<ul>
<li><a href="./index.html">Página Inicial</a></li>
<li><a href="./musicas.html">Músicas</a></li>
<li><a href="./contato.html">Contato</a></li>
</ul>
</nav>
</header>
<script>
document.querySelector('.menu-toggle').addEventListener('click', function () {
document.querySelector('nav').classList.toggle('open');
});
document.querySelectorAll('nav a').forEach(function (item) {
item.addEventListener('click', function () {
document.querySelector('nav').classList.remove('open');
});
});
</script>
<iframe class="video-iframe" width="560" height="315"
src="https://www.youtube.com/embed/videoseries?si=yv6oq0o0HxvT6fAG&list=PLBPlc41Y4LqONDSwAyp0tFPWjH_uOfcGl"
title="YouTube video player" frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
allowfullscreen></iframe>
<div class="playlist-container">
<a href="https://youtu.be/0uapwcteb70?si=83Ug5Nanlumps0Iw" class="page-title">EXCLUSIVE MY BEATS & SONGS</a>
<a href="https://youtu.be/w_pEzh6m-vA?si=8c-XKhmspBB0JC6K" class="h1">
<h1>MY CHILLHOP BEATS</h1>
</a>
</div>
<iframe class="player-iframe" width="560" height="315"
src="https://www.youtube.com/embed/videoseries?si=spJZF8ojVF8NaFc5&list=PLBPlc41Y4LqOW98nkv7iO8pcPaeUZMzgb"
title="YouTube video player" frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
allowfullscreen></iframe>
<ul id="playlist">
</ul>
</div>
<script>
async function fetchSongs() {
const musicFolderPath = './public/assets/music/INSTRUMENTALS';
const songs = [
// Adicione mais músicas conforme necessário aqui..
];
return songs.map(file => {
return {
title: file.replace(/\.[^/.]+$/, ''),
artist: 'Desconhecido',
album: 'LIVE',
src: `${musicFolderPath}/${file}`,
};
});
}
async function loadSongs() {
const songs = await fetchSongs();
const playlistContainer = document.getElementById('playlist');
const audioPlayer = document.getElementById('audio-player');
songs.forEach((song, index) => {
const listItem = document.createElement('li');
listItem.innerHTML = `<b>${song.title}</b> - ${song.artist} (${song.album})`;
listItem.addEventListener('click', () => playSong(song.src, audioPlayer));
playlistContainer.appendChild(listItem);
});
}
function playSong(src, audioPlayer) {
audioPlayer.src = src;
audioPlayer.play();
}
loadSongs();
</script>
<footer class="">
<p></p>
<audio controls loop class="custom-audio">
<source src="./assets/music/What Say You.mp3" type="audio/mp3">
Seu navegador não suporta o elemento de áudio.
</audio>
<ul class="redes-sociais">
<li><a href="https://open.spotify.com/user/wil.dgl?si=BxCu9-9WSVOPEguT-DdypQ">SPOTIFY</a></li>
<li><a href="https://instagram.com/wb_recordings?igshid=MzMyNGUyNmU2YQ==">INSTAGRAM</a></li>
<li><a href="https://m.soundcloud.com/wbrecordsmusic">SOUNDCLOUD</a></li>
</ul>
<p>W & B RECORDINGS © </p>
<a href="./index.html">PÁGINA INICIAL</a>
</footer>
</body>
</html>